Creating objects programmatically

56 views
Skip to first unread message

Niccolo Venturoli

unread,
Feb 20, 2012, 1:07:29 PM2/20/12
to ff-activex-host, d.p...@labbit.it
Can I create objects directly from javascript without using the
<object> tag inside the html code?
IE lets you create objects like this:

var a = new ActiveXObject(clsid)
a.myMethod();

with ff-activex-host it doesn't seem to be possible.

We tried this code:

var ax = document.createElement('OBJECT');
ax.setAttribute('type', 'application/x-itst-activex');
ax.setAttribute('clsid', '{36299202-09EF-4ABF-ADB9-47C599DBE778}');

but it doesn't work too... does this plugin instantiate objects only
when it parses the HTML ?

Leeor Aharon

unread,
Feb 24, 2012, 4:22:46 AM2/24/12
to ff-acti...@googlegroups.com, d.p...@labbit.it
You can create instances of the plugin dynamically from Javascript, but you need to add the whole object to the DOM in one call, as opposed to what you've been doing - adding the object element, and then slowly adding its attributes.

Leeor.


--
You received this message because you are subscribed to the Google Groups "ff-activex-host" group.
To post to this group, send email to ff-acti...@googlegroups.com.
To unsubscribe from this group, send email to ff-activex-ho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ff-activex-host?hl=en.


Reply all
Reply to author
Forward
0 new messages