Click to See Complete Forum and Search --> : ActiveXObject


evimav
01-08-2003, 04:39 AM
Dear all, I have noticed that when I use an activex object embedded in my html page by using the known html tag <OBJECT id=x
classid=CLSID:y></OBJECT> I normally get the event handlers of that object.
On the other hand, when I create that object using script, for example var x= new ActiveXObject("blabla.blablax") i do not know the way i will get the events triggered by that object. Has anybody faced a simillar problem?
Regards,
evimav

evimav
01-08-2003, 07:30 AM
Dear Dave, thank you for your instant responce!
I use the following code in my page in order to load the activex and everything is fine as it is loaded properly. This object has a set of methods, properties, events. My problem is that i do not know how i will catch these events. I tried to use the second fragment of the following code, but it does not function.
I know that when i insert this object in my html using the clsid (third fragment of the following code), everything works fine..-as I get the events using the second fragment of code.
Best Regards

1) <script>
var FC_Session=new ActiveXObject("JabberCOM.JabberSession");

</script>

2) <SCRIPT LANGUAGE=javascript FOR=onesession EVENT=OnConnect>
<!--
onesession_OnConnect()
//-->
</SCRIPT>

3) <OBJECT id=FC_Session
classid=CLSID:F6C7A23D-B7B1-11D3-AECB-00A076A018E8 VIEWASTEXT></OBJECT>