HELP: Using ActiveX Control in web page 
Author Message
 HELP: Using ActiveX Control in web page

I have an ActiveX control in a web page. I use VBScript to call a method of
the control. The problem is that VBScript is trying to call the method
BEFORE the control is downloaded and installed on the user's computer thus
giving an error that the method does not exist. Is there a way to "wait"
until the control has been installed?

Here's my page

<HTML><HEAD><TITLE>Demo</TITLE>
</HEAD><BODY><P align=center>
<OBJECT ID="UserInterface"
CLASSID="CLSID:97FCE8EB-1CD6-11D4-A076-0060977CC68B"
        NAME="UserInterface" WIDTH=515 HEIGHT=355
        CODEBASE="NRptGUI.CAB#version=1,0,0,13">
</OBJECT></P>

<SCRIPT language="VBScript">
    **** ERROR HERE ****
    UserInterface.SetProps False, "The Net Reporter Demo", "MyServer"
</SCRIPT>
</BODY></HTML>

Any help would be appreciated
Thanks



Mon, 28 Oct 2002 03:00:00 GMT  
 HELP: Using ActiveX Control in web page
 <SCRIPT language="VBScript">
    sub window_onLoad
        UserInterface.SetProps False, "The Net Reporter Demo", "MyServer"
    end sub
 </SCRIPT>


Mon, 28 Oct 2002 03:00:00 GMT  
 HELP: Using ActiveX Control in web page
Another way:

Sub document_onreadystatechange()
        If document.readystate = "complete" Then 'doItHere
End Sub

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Tue, 29 Oct 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP: Using ActiveX Control in web page

2. Using ActiveX control in web page?

3. Real Confused using ActiveX controls on web pages

4. Question on using ActiveX control in Web page

5. Real Confused using ActiveX controls on web pages

6. Web Pages using Activex Controls

7. Help with ActiveX Controls on web pages

8. help! ACTIVEX control on my WEB PAGE

9. Help - VB6 calendar Control as ActiveX on a web page

10. Help - VB6 calendar Control as ActiveX on a web page

11. Help: Talking to VB5 created ActiveX controls via Scripts in Web Page

12. REGISTERING ACTIVEX CONTROLS ON WEB PAGES

 

 
Powered by phpBB® Forum Software