Click to See Complete Forum and Search --> : Capturing my activeX ctrl Event.
bharadwajrv
April 11th, 2003, 04:38 AM
Hi,
i have my activeX control which is loaded in an html page.
On event raised by activeX ctrl(Ex. "OnLoadComplete" is the event name), how to handle this event in my HTML Page.
thanks in adv.
Venu
Satishpp
April 11th, 2003, 05:02 PM
I have not tried this but you could have a look.
http://www.cs.ualberta.ca/~zaiane/courses/cmput499/work/presentations/activex.html
An exerpt from this link...
***********************
ActiveX components may also generate events. These events can be trapped by writing script functions in the HTML page. ActiveX events can only be trapped by VBScript code.
For example, suppose the "AreaMenu" control shows a menu that the user can click on. When the user clicks on a menu item, the Click(index) event is generated. This event can be trapped by writing the following VBScript function in the body of the HTML page:
<script language="vbscript">
Sub AreaMenu_Click(Cmd)
' This function is executed when a menu item is selected.
' The ID of the menu item is automatically inserted into
' the Cmd variable, defined in the function header.
Msgbox("You have selected Menu Item #" & Cmd)
' Append the ID of the menu item selected to a friendly message.
End Sub
</script>
***********************
lele_hrishi
August 7th, 2003, 02:46 PM
Hi,
I have an activeX control which does some processing and fires event for percent complete. On my webpage I have code to capture this event. The event handler gets properly called when activeX fires event.
I have a small GIF image on the page and I want to strech it to show progress bar. Now problem is that the event handler changes width of the image but I am not able to see it streching on the web page. If I place a alert(); in the function then I am able to see the image streching..
any help?
Thanks,
Hrishi
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.