Previous | Next | (P-PDF) JavaScript
Topic: Re: JavaScript Interface to custom plugin
Conf: (P-PDF) JavaScript, Msg: 66045
From: pmhesse
Date: 6/1/2002 01:48 AM
On 5/31/2002 7:17:10 AM, dug wrote:
>>>I tried the following JavaScript code and received an error (below):
>>>---------
>>>var myHandler = security.getHandler("TEST.MyHandler", true);
>>>myHandler.login("test", "test");
>>>---------
>>>TypeError: myHandler has no properties
>>>---------
>
>The repeated error seems to
>indicate that the signature
>handler you're
>referring to isn't being seen.
>If that's true, it would
>probably be a
>problem with the plug-in
>itself, not the JavaScript. Do
>you see the name
>of your handler when you run
>this code in the console?
>
>var a = security.handlers;
>for (var i = 0; i < a.length;
>i++)
>console.println("\n"+"a["+i+"]
>= "+a[i]);
>
>If not, try taking this to the
>Developers forum to see why
>your plug-in
>isn't behaving correctly.
>
>--doug
Doug,
Yes, I did see my handler listed as the first handler when I executed that code. Thanks for the idea.
--Peter