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++.
