Hi,
I want to access the features of a plugin without actually embedding
it into a page. Is this possible?
Eg
The code to embed the object into a page is:
<OBJECT classid='CLSID: 7FA62735-AHC3-14d2-9F81-00114B3245C5
codebase='http://www.test.com/plug.cab#versio n=3,1' "id='myPlug in'
height='0' width='0'>
<EMBED type='applicati on/x-myPlugin' name='myPlugin' hidden='true'
src='in.txt'></EMBED>
</OBJECT>
I could simply add this using document.write, but for various reasons
I dont want to do this.
I would rather do something like:
var plugin = (navigator.mime Types &&
navigator.mimeT ypes["applicatio n/x-Web-Plugin"]) ?
navigator.mimeT ypes["applicatio n/x-Web-Plugin"].enabledPlugin : 0;
myObj = new object("CLSID:7 FA62735-AHC3-14d2-9F81-00114B3245C5");
myObj.pluginMet hod
Thanks
I want to access the features of a plugin without actually embedding
it into a page. Is this possible?
Eg
The code to embed the object into a page is:
<OBJECT classid='CLSID: 7FA62735-AHC3-14d2-9F81-00114B3245C5
codebase='http://www.test.com/plug.cab#versio n=3,1' "id='myPlug in'
height='0' width='0'>
<EMBED type='applicati on/x-myPlugin' name='myPlugin' hidden='true'
src='in.txt'></EMBED>
</OBJECT>
I could simply add this using document.write, but for various reasons
I dont want to do this.
I would rather do something like:
var plugin = (navigator.mime Types &&
navigator.mimeT ypes["applicatio n/x-Web-Plugin"]) ?
navigator.mimeT ypes["applicatio n/x-Web-Plugin"].enabledPlugin : 0;
myObj = new object("CLSID:7 FA62735-AHC3-14d2-9F81-00114B3245C5");
myObj.pluginMet hod
Thanks
Comment