Heinrich Ziegenhagel
|
Re: RE: Webkit and PlugIns
|
Heinrich Ziegenhagel
02/25/2010 8:01 AM
post48270
|
Re: RE: Webkit and PlugIns
Hi,
thank you for you fast answer.
I had a look on the sample-plugin and it looks to me very similar like the PlugIn I have made for Firefox (np_entry,
npn_gate... are the same). But I have still one question is it not posible to call PluginFunctions via JavaScript. I "
think" NetscapeAPI has the interface to call via JavaScript functions from Plugin.
Example:
<object id="simpleplugin" type="application/simple-plugin" class=hiddenObject></object><br>
<script>
var embedPlug = document.getElementById('simpleplugin');
function show(arg)
{
document.getElementById("result").innerHTML += "<p>" + arg + "</p>";
}
if (embedPlug)
{
show("plug.version = " + embedPlug.version); <!--version is a func in Plugin-->
}
Of course needs the Plugin to include the Java interface.
But maybe I am mixing this with extensions.
If I interpret you answer and the code of Webkit it means to me that it is not posible to call functions via JavaScript
form a Plugin "Scriptable Plugin". Is it realy only posible to talk between Webkit and Plugin with defined Functions in
the NAPI like Mouseover, Mouseclik, Loadurl.
Thank You!
|
|
|