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

Catch an ActiveX event in a web page

Status
Not open for further replies.

GarthJ

IS-IT--Management
Jul 29, 2001
11
AU
Hi,
I am looking for an example please on how to get an ActiveX's events to submit a form please ... in other words catch an event within a web page.

I have an ActiveX control I use in an HTML document.

<object
classid=&quot;clsid:E56666C6-4F59-11D5-9E0A-000102A3FE41&quot;
ID=&quot;123&quot; >
</object>

The control throws up an event which I would like to catch in the HTML with a
script (javascript, VBscript).
The event name is &quot;Event&quot; and has an argument which type is declared in
the activeX control. But this type I cannot seem to use.
I tried in Javascript but unfortunately it does not work:

<SCRIPT LANGUAGE=&quot;JavaScript&quot; FOR=&quot;123&quot; EVENT=&quot;Event(p)&quot;>
alert(&quot;nothing&quot;);
</script>

<SCRIPT LANGUAGE=&quot;JavaScript&quot; FOR=&quot;123&quot; EVENT=&quot;Event&quot;>
alert(&quot;nothing&quot;);
</script>

How can I catch an ActiveX event in HTML? Does Javascript, VBscript, ASP support this?

If you have any ideas or could refer me to a resource on the web I'd appreciate it.

Thanks in advance
 
if you suppose use ID NAME is &quot;Show&quot;!

<script language=javascript>
<!--

Show_EventName {


}

-->
</script>

I don't know It's really correct!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top