Issue in Event Handling of COM Event in Java Script
-
hi All, I have build an ATL COM using C++ , in this ATL COM i have implemented connection points also I have used this ATL COM in a Web Page using java script I can call the methods of ATL COM using java script in a web page and its working fine but the discrepancy is in the case of event handling , everytime ATL COM fires an event ,the event occurance on web page increases by one i.e for the first time event is fired , event will be displayed only once on web page ,next time is fired it will shown twice and next time it is fired the event is shown more than one time the previous one... I have also tested this ATL COM on VB it is working fine for every event , VB Client shows that there is only one event , evertime an event is fired from an ATL COM there is no discrepancy as there is in Web Page Here is the HTML page code.. CallMe function myatl::ExecutionOver(CallID) { alert("CallId : " + CallID); } Any pointers will be a good help with regards Abhiraj