I am writing one plugin using NPAPI. I was looking for simple example which shows javascript calling NPAPI plugin methods. Please advice
Edit : Example should show all required method implementation in PLugin and how it exposes the NSobject to browser. Thanks in advance
see question Pass url from java script to NPAPI plugin
javascript example:
var plugin = document.getElementById("objecttagid");
// function call
plugin.someMethod(3,4);
var someReturnVal = plugin.someOtherMethod(4,5);
Given what you aparently know, I would really really really strongly advise you to look at FireBreath; it makes writing NPAPI plugins much easier and they work as ActiveX controls as well.