I have an active X control that looks something like this:
<object id="activeX" height="100%" width="100%" classid="myClass" >
<param name="name" value="myControlName" />
<param name="details" value="interestingDetails" />
<param name="a" value="a" />
<param name="b" value="b" />
</object>
Instead of having this html live on my page, I would like to insert it dynamically using a jquery widget.
I could do something like this:
myObject.id = "activeX";
myObject.height = "100%";
myObject.width = "100%";
myObject.classid = "myClass";
var param1 = document.createElement('param');
param1.setAttribute('name', 'name');
param1.setAttribute('value', 'myControlName');
myObject.appendChild(param1);
var param2 = document.createElement('param');
param2.setAttribute('name', 'details');
param2.setAttribute('value', 'interestingDetails');
myObject.appendChild(param2);
var param3 = document.createElement('param');
param3.setAttribute('name', 'a');
param3.setAttribute('value', 'a');
myObject.appendChild(param3);
var param4 = document.createElement('param');
param4.setAttribute('name', 'b');
param4.setAttribute('value', 'b');
myObject.appendChild(param4);
and then attach this object to something on my page.
Or I could just add html to my page, for example:
$('#div').append('<object id="activeX" height="100%" width="100%" classid="myClass" >')
.append('<param name="name" value="myControlName" />')
.append('<param name="details" value="interestingDetails" />')
.append('<param name="a" value="a" />')
.append('<param name="b" value="b" />')
.append('</object>');
The thread of these works. When I try to invoke the active X control that I just loaded onto the page using one of the two methods above, I get the object does not exist.
Invoking active X objects, when I write directly, my HTML works. But not when I load this object from the widget.
- - ActiveX jquery-?