Thanks.
finally managed to get the callback from plugins to js to work. But now
encounter another problem.
My callback function need to return a a few values. How to return the
values. I tried

NPN_GetURL(m_npNPInstance, "javascript:test(errorCode, errorString);",
NULL);
but it don't work.

e.g
in js:
test(errorCode, errorString)
{

}

Thanks


"Sean Echevarria" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> There's nothing intrinisically wrong with what you are attempting to
> do - my plugin does it, I believe without doing anything different
> between the 2 scenarios.
>
> Use a debug build of N6 to determine where it is hanging.
>
>
> On Wed, 22 Aug 2001 12:34:28 +0800, "MacTan" <[EMAIL PROTECTED]>
> wrote:
> >    I managed to do a callback from plugin to javascript using
NPN_GetURL()
> >if the call is initiated from the javascript.
> >    e.g. my page has a test button, pressing it will call the test()
> >function in the plugin. Within that function, I can call test2() function
> >implemented in the javascript.
> >
> > The problem is that my plugin will recieve events and I want to fire the
> >events to the javascript. When I recieved a event, I will call test2().
> >netscape 6 will hang.
> >
>



Reply via email to