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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new ActiveXObject()

Status
Not open for further replies.

almoes

Programmer
Joined
Jan 8, 2003
Messages
291
Location
US
Hi!

I am trying to create an object on the client side with the following code in an ASP:

<html>
<head>
<script language=&quot;JavaScript&quot;>
<!--
var myRSPclient=new ActiveXObject(&quot;RemoteSupportPortal.RSPclient&quot;);
-->
</script>
</head>
</html>

There's no error but the component doesn't appear. The component is an ocx and it is registered. If I use the <OBJECT> tag like this:

<html>
<OBJECT ID=&quot;cApax&quot; NAME=&quot;cApax&quot; CLASSID=&quot;CLSID:24B4E4FA-5E05-4800-BBCC-20B8D5F8A811&quot; height=8415 Width=10575></OBJECT>
</html>

then it works. However I need to start it without knowing the CLSID. What am I doing wrong?
Thanks!!
 
i aint sure but here goes:

when this tag is used:
<OBJECT ID=&quot;cApax&quot; NAME=&quot;cApax&quot; CLASSID=&quot;CLSID:24B4E4FA-5E05-4800-BBCC-20B8D5F8A811&quot; height=8415 Width=10575></OBJECT>
it reads the server info.

but when using js it reads the clients registry, by the way is the ocx registered in the client system?

Known is handfull, Unknown is worldfull
 
Thanks a lot, I got the answer to this problem now. This is what happens (maybe it helps to somebody else):
If you want to create a client side object you can only use the OBJECT tag with the property CLSID, because the PROGID doesn't work on the client side. This is because on the client side its only secure to use CLSID to make sure the objects are unique.
You can read about this here:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top