PDA

Click to See Complete Forum and Search --> : ActiveX Control -> HTML/VBScript


ManCap
Sep 6th, 2000, 06:23 AM
Is it possible for my ActiveX Control loaded on a webpage, to call the VBScript functions and subs defined on that page?
And if, then how do I call them from the ActiveX?

I have tried with calling through the Parent object, but it won't let me access my own subs and functions on the webpage.


Hope anyone can help...
- ManCap

alex_read
Sep 6th, 2000, 08:16 AM
use the MS activex control pad for this ...
http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/search.html (then type in control pad)

monte96
Sep 7th, 2000, 04:54 PM
You can do this through events on the ActiveX object. Remember though, that the ActiveX control is running on the Client side, not the Server. You can access Client side scripts and functions but not server side.

If you use the Script Outline in Interdev, once you have added the ActiveX control to the page using the <OBJECT> tag and given it a name with the name attribute, it will
show up in the script outline and you can easily add events for the ActiveX control. Within these events you can call other client side scripts on the page.

Hope this helps