IE Security update

G

Guest

I have a page thats going to be impacted on the IE security update in June,
for active x controls, so here is my issue:
I have a windows user control on my page that talks to a EXE and works fine.
I'm working on some of the changes I'm finding
here:http://msdn.microsoft.com/library/d.../author/dhtml/overview/activating_activex.asp

but its not working. I'm referencing my control via an <object> tag, BUT I'm
referencing the actual DLL name and not a classID of the control.
I was able to get this somewhat:
var myObject = document.createElement('object');
DivID.appendChild(myObject);
myObject.width = "200";
myObject.height = "100";
myObject.classid= "clsid:UsesCarSales.DLL";
but I'm getting a JavaScript Error of 'Access Denied' so is there a way I
can get this to work so when the update comes ou my pages work correclty?
 
G

Guest

I haven't done this before, but it strikes me that a javascript function
attempting to create an activex object by referencing a DLL is... I dunno...
scary? Its not surprising that it's "access denied"-ville. I'd suggest
registering the plugin so that you don't have to load it from a dll, then
instead of "createElement"ing, just insert your normal <object> embedding
HTML into an existing element on the page...
(document.all ? document.all[elementName] :
document.getElementById(elementName)).innerHTML = "<OBJECT ... />";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top