Binding ActiveX events within single file Javascript -
i'm trying simplify ie activex project single javascript file , i'm having trouble activex events hardware pieces
the project has them defined move entire script tag js file , allow people add eventlistener event if need notified of it.
the js file being added such
<script id=clienteventhandlersjs language="javascript" src="./single.js"></script>
the original synthax (html tag) is
<script for="component" event="targetevent(args)" language="javascript">component_targetevent(args)</script>
the modified synthax (single js file) is
component.targetevent = function(args){}
trying bind the event has not worked. have tried following approach still "uncaught referenceerror: component not defined"
if leave original format in html, works, moving single js file causes referenceerror.
Comments
Post a Comment