ActiveX plug-in
Hi GURUs,
I have created an ActiveX plug-in for client. When the client go to the website, it will automatically detect whether the my ActiveX plug-in is available or not. If not, it will direct the user to download the plug-in from my URL.
Everything works fine, but I saw some program (such as Flash), will actually pop-up in IE task bar and ask the user to install their plug-in.
I would like to do the same for my plug-in.
Any idea how? Sample code/web site tutorial will be greatly appreciated.
Thanks for any help in advance :)
[578 byte] By [
ryu] at [2007-11-20 11:34:51]

# 1 Re: ActiveX plug-in
The warning in IE, or any browser for that matter, is not coded in the plugin, but actually part of the security of the web browser. So long as your plugin is being called, the browser should automatically recognize that it is not in the system.
# 2 Re: ActiveX plug-in
Hi PeejAvery,
How do you call the plug-in? The way I call my plug-in is through Javascript.var oAX;
try { oAX = new ActiveXObject("MyActiveX.ActiveXClass"); }
catch (e)
{
//ActiveX is not available
window.location = 'GetActiveXObject.aspx';
return;
}
If I don't use try...catch, IE will give me a javascript error.Automation server can't create object
Calling the ActiveX object doesn't make IE to pop-up installation bar. Please help.
Cheers :)
ryu at 2007-11-8 0:44:27 >

# 3 Re: ActiveX plug-in
If I don't use try...catch, IE will give me a javascript error. Calling the ActiveX object doesn't make IE to pop-up installation bar. Please help.
If it fails without the try...catch statement then it isn't even loading at all. That explains why it doesn't try to install it.
Is MyActiveX.ActiveXClass your own created ActiveX object? How have you installed it to the system so that the browser knows what it is?
# 4 Re: ActiveX plug-in
why dont u just try it with Embedded html, its also cross-browser i think
# 5 Re: ActiveX plug-in
Mitsukai, you are confusing objects with plugins. Objects are embedded, plug-ins need to be called through scripting.
Also, cross-browser depends on what is being embedded.
# 6 Re: ActiveX plug-in
u can embedded it and retrieve the element through getElementById
# 7 Re: ActiveX plug-in
Hi PeejAvery,
If it fails without the try...catch statement then it isn't even loading at all. That explains why it doesn't try to install it.
Is MyActiveX.ActiveXClass your own created ActiveX object? How have you installed it to the system so that the browser knows what it is?
MyActiveX.ActiveXClass is my own object. The way I install is that when it fails load that ActiveX object, it will automatically send the user to another page which will send the installation package (exe) to the user.
The user will then install this activeX object into their PC.
I guess, it is good enough. I am just trying to get IE to pop-up a message (in the task bar) and ask the user to install this activex object.
The question is, how to send this activeX object from server to client so IE will recognise it is a new ActiveX object and needs to be installed. (Eg. Is it done in Response.AddHeader, etc...?)
I saw some webpage that actually does that and I would like to do the same.
Cheers :)
ryu at 2007-11-8 0:49:28 >

# 8 Re: ActiveX plug-in
u can embedded it and retrieve the element through getElementById
Hi Mitsukai,
I have actually tried that. Interesting enough, I can get the property values (parameter value) of my object, but I can't call the object's functions.
It is still doesn't pop-up a message in the taskbar to install this ActiveX object.
My guess is, when you do embed the object, all the properties of the object is send to browser as a "primitive" class and therefore, it is possible to access its properties (parameters). But not the actual ActiveX object itself.
Cheers :)
ryu at 2007-11-8 0:50:30 >

# 9 Re: ActiveX plug-in
Is it possible that your settings on the localhost are loose enough that the information bar is not popping up?
# 10 Re: ActiveX plug-in
Hi PeejAvery,
How to check the setting of my localhost so I can get the information bar to pop-up?
Cheers :)
ryu at 2007-11-8 0:52:36 >

# 11 Re: ActiveX plug-in
Tools -> Internet Options -> Security -> Local Intranet -> Custom Level
# 12 Re: ActiveX plug-in
Hi PeejAvery,
I have checked the internet option. All of ActiveX sections are checked to be enabled. Is there any particular setting I should look for?
Thanks again for your help.
Cheers :)
ryu at 2007-11-8 0:54:36 >

# 13 Re: ActiveX plug-in
If all are checked, then you got them all. ;)