Well,
Controls for IE use JS calls, call control of active function function (the callback function) is normal,
But is unable to capture the OCX returned event, the following code
<script language="javascript" type="text/javascript" for="IP_CAM "The event="UpdateUpdateGUInfo (GUName, GUID, PUID, iState)" & gt; Alert (GUName); </script> For a great god
CodePudding user response:
CodePudding user response:
Nobody know what you said OCX is ghost ah, brother,
CodePudding user response:
Type="text/javascript" try to get rid of, I didn't write this callback, don't know will have influence
CodePudding user response:
Does anyone know, brother
CodePudding user response:
Remove the type tried doesn't work, don't know whether I control problem
CodePudding user response:
No one know?
CodePudding user response:
reference hate go away! On the second floor response: OCX nobody know you said is what the devil ah, brother, Ignorance can also make you smug? Don't know will help and learn more CodePudding user response:
love to knock the code references 6 floor small fat reply: no one know? I also appear the same problem, but before I write ocx component in the HTML of the IE call, can capture the event, then suddenly can not capture, Will my personal consideration, one is to throw a signal; Is an event notification mechanism is has may not be reliable (see in other places is the best change event (web page) and notify (OCX) internal mechanism, but I tried to use) CodePudding user response:
A long time ago to write his own ideas, & lt; ! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt; Untitled Page <body> <script LANGUAGE="jscript" & gt; Myform=new ActiveXObject (" ClickEventProj. ClickEvent "); Myform. AttachEvent (" OnClick "test1, false); Myform. AttachEvent (" buttonClick "test2, false); The function test1 () { Alert (" form by clicking "); } The function test2 () { Alert (" button was clicked "); } </script>