Visit Mozilla.org

Talk:Gecko Plugin API Reference:Scripting plugins

From MDC

[edit] Java examples & Embed tag questions

If this is supposed to replace LiveConnect, how about a few examples that ARE Java-specific? I understand this is supposed to be language-independent, but I still think some examples would help.

Secondly, isn't the embed tag deprecated now? Can the call be done with "object" instead?

--John Doe

[edit] More examples!

More examples would be nice. I'm new at that stuff and it took me a fair amount of time to figure what is the API of the NPObject you get from NPN_GetValue NPNVPluginElementNPObject. There should be a link to the DOM API explicitely stating that it's what you're getting.

I also got stuck on NPN_HasMethod / NPN_HasProperty replying false for things like "getAttribute" or "tagName" which I was assuming would be there, until I realized I couldn't pass straight strings through and had to use NPN_GetStringIdentifier:

NPN_HasMethod( instance, dom, NPN_GetStringIdentifier( "getAttribute" ) )

--TTimo