I have my Plugin.cpp class in my NPAPI Plugin i want to pass this class object to javascript function as follows ::
function testData(){
var obj = data.getObject();
//data is an object created in javascript, getObject is implemented in Plugin.cpp, in Invoke method, inside getObject i have to return the Plugin Class Object . obj i have to access Plugin methods.
initFS(obj);
}
function initFS(obj) {
obj.testFunc(); //testFunc method is in the Plugin
}
Thanks in advance !!