|
|
Reload an ActiveX control in the browser
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2005
Status:
Offline
|
|
Does somebody know if it's possible to reload an activex control embedded in an HTML page, without reloading the page?
I want to be able to dynamically load the ActiveX control with differnt property settings.
i cannot just change the propeties of the control because the control is build that it reads the values when it initializes and then sets a local variable, which i don't have access to later on. So i wasn't able to realod the activex with different paramas without reloading the page.
http://www.go4kpo.com
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
We're a Mac site; we have no experience with ActiveX controls. Neither should anyone else, frankly. Use a real standard, or a Java applet if nothing else will work. ActiveX is a fundamentally-flawed trechnology which has caused more problems than it has ever solved.
What exactly is it that you want to do? We may know of a better solution than ActiveX; such solutions exist in almost every case.
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status:
Offline
|
|
Not having used ActiveX in more than 5 years, this solution may be completely stupid (and I don't even know if IE supports what I'm about to write, because I don't script for it anymore).
But something like replacing the <object> with a clone of it would seem to work.
Code:
var my_object = document.getElementById("my_object");
var new_object = my_object.cloneNode(true);
my_object.parentNode.replaceChild(new_object, my_object);
That's assuming the ActiveX control is embedded as an <object> tag with an id of `my_object'.
And yeah, I know IE lets you get elements by just referring to a global var of their ID, but that's just wrong
|
Just who are Britain? What do they? Who is them? And why?
Formerly Black Book
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Originally Posted by Millennium
We're a Mac site; we have no experience with ActiveX controls. Neither should anyone else, frankly. Use a real standard, or a Java applet if nothing else will work. ActiveX is a fundamentally-flawed trechnology which has caused more problems than it has ever solved.
What exactly is it that you want to do? We may know of a better solution than ActiveX; such solutions exist in almost every case.
I agree with the sentiment, but there's no way I'd ever presume to know what 'we' have experience with, given a good deal of the members here have skills in all sorts of web development.
|
Computer thez nohhh...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|