I am not getting value from the script. I want to pass the value to the
script from my plugin and by calling it once, it will become a callback
function that keep on passing the value to the script. I need a callback
function from plugin to script.

"Shane Segui" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> You can use "NPN_GetURL" to call the javascript function that handles
> the mouse event and pass the coordinates in the function's arguments
> something like this:
>
> C++:
>
> NPN_GetURL(mInstance,"MouseMove(12,10)","_self");
>
>
> HTML:
>
> <script>
> function MouseMove(x,y){
> //do something....
> }
> </script>
>
> There is a new way to do this, try this url:
>
http://www.mozilla.org/projects/plugins/bi-directional-plugin-scripting.html
>
> shaneski
>
> Thomas wrote:
> > I have a callback function in my plugin that return the mouse coordinate
> > everytime when the mouse move.
> >
> > How do i create a callback function to return the coordinate value from
my
> > plugin back to javascript, so that everytime when i get a update from my
> > function it will trigger an update of the value in javascript.
> >
> > Everything is writen in C++.
> >
> >
>



Reply via email to