Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generic ActiveX ?

Status
Not open for further replies.

simononeill

Programmer
Mar 31, 2006
1
GB
Hello, I have an activeX control referenced on a web page as follows.....

<OBJECT id=test
title="test control"
style="LEFT:10px;WIDTH:709px;TOP:10px;HEIGHT: 71px"
CLASSID="CLSID:3495D06E-77C3-445E-9CDF-7AE7F138782A"
CODEBASE="test.CAB#version=1,11,0,49"
STANDBY="Please wait, test loading. Size is 180k."
width=709 height=71 vspace=0>
<PARAM NAME="X" VALUE="">
<PARAM NAME="Y" VALUE="">
<PARAM NAME="Z" VALUE="">
Test has been unable to load. Please contact support.
</OBJECT>

imagine the control test.ocx is already present on the client computer. I want to be able to give different versions of this control to different clients but I still want the web page to instantiate the control for each client. Currently this will not work as the CLASSID only references one version. I would really like to lose this reference if possible to make it generic (using scripting perhaps ?) so that whichever version of the control sits on the client machine, the web page finds it and loads it

Just a few clues would suffice. Thanks in advance.
 
The #version parameter will check the version on the local client. If the version is earlier than that specified in the parameter, IE will attempt to download and install the cab file specified in the codebase parameter.

So, you can do what you want simply by setting the #version to 0,0,0,0.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top