tag:blogger.com,1999:blog-428821977922102947.post3053608759603386116..comments2020-10-11T21:05:43.787-05:00Comments on Rants from the home office: Connecting to ActiveX control events in IE11 modeEWHhttp://www.blogger.com/profile/17985891579499891276noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-428821977922102947.post-19482883921530294162017-10-28T17:19:45.661-05:002017-10-28T17:19:45.661-05:00You cannot remove function declarations. Not know...You cannot remove function declarations. Not knowing the specifics of what your needs are, not sure if you have any options. If it is the case where you do not want a listener to perform some action, you could, in your listener, check for a state indicator if the listener should actually do something or not. For example:<br /><br /> if (do_operation_check()) {<br /> // do stuff here...<br /> } else {<br /> // do nothing<br /> }<br /><br />Where "do_operation_check()" is whatever expression you require to determine if the listener should do something.<br />EWHhttps://www.blogger.com/profile/17985891579499891276noreply@blogger.comtag:blogger.com,1999:blog-428821977922102947.post-80972926455934938792017-10-26T17:45:26.592-05:002017-10-26T17:45:26.592-05:00Hi Earl,
A bit but a wonderful blog you have wri...Hi Earl, <br /><br />A bit but a wonderful blog you have written. I was actually looking for something like this to work for me as we have been running our web app in Comparability mode till now (IE7 mode) and on IE our ActiveX control was working all fine as AttachEvent was working fine to add event listener with no issues at all. <br /><br />But now on IE 11 browser with Comparability mode not set, AttachEvent stopped working and we were looking for an alternate mechanism to work for us. Your code snippet here works all fine to attach an event listener, but we still require to remove the event listener in certain situation. So by any chance do you have any code snippet which can be used for Detaching the event listener for an ActiveX control at the runtime using JavaScript or JQuery.<br /><br />Any kind of help would be really appreciated.<br /><br />Kind Regards<br />KapilAnonymoushttps://www.blogger.com/profile/06532187049650929161noreply@blogger.com