html - Controlling ActiveX Control via Javascript -
i trying utilize software wonderware via activex. have gotten object appear, want pass parameters , eliminate having setup object everytime. there 2 versions of command activex , .net. haven't gotten .net command work @ all, can activex 1 / not parameters.
here manual says it:
the aahistclienttrend command allows run wonderware historian client trend programme (or functional subset) within wonderware intouch hmi software or .net container visual basic .net or net explorer.
the html code have:
<html> <head> <body> <object id="atrend1" classid="clsid:e08609f1-58cc-11d3-b1cf-00105aa45077" viewastext="" height="100%" width="100%" /> </body> </head> </html>
i seek pass parameter via:
<script language="javascript"> document.atrend1.tagpickervisible = false; </script>
and crashes net explorer.
edit : ideas?
i figured out way it. not sure it's way, works.
<html> <head> <script> function fxntrend() { atrend1.toolbarvisible = false; atrend1.tagpickervisible = false; atrend1.realtimemode = true; atrend1.timebarvisible = false; atrend1.gridvisible = false; } fxntrend(); </script> <body onload="fxntrend()"> <object id="atrend1" classid="clsid:e08609f1-58cc-11d3-b1cf-00105aa45077" viewastext="" height="100%" width="100%" /> </body> </head> </html>
javascript html activex wonderware
No comments:
Post a Comment