Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sgalkovski

macrumors newbie
Original poster
Apr 22, 2010
1
0
Hi,
I'm working on NPAPI plug-in for Safari and Firefox.
In order to implement scripting capabilities (JavaScript calls from browser to plugin methods) i use this example /Developer/Examples/WebKit/NetscapeMoviePlugIn.
When plugin methods invoked by javascript first it comes to NPP_GetValue function implemented by plugin, i found that on mac 10.6 with Safari 4.X this method doesn't invoked by Browser, on Mac 10.5 it invoked but after NPObject scriptable object returns then nothing happens.
No problem with event handlers and with rest of NPAPI capabilities only scripting doesn't work, also i can call the javascript methods from plugin.
Thanks with advice.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.