Scripting is an optional method for invoking the Web runtime. While it is possible to invoke the Web runtime without scripting, some users may want to take advantage of the methods and properties in the object interface.
The following VB Script example illustrates how to invoke the object by a push button event using a script:
<INPUT id=button1 name=button1 type=button value=Button> <SCRIPT LANGUAGE="VBScript"> sub button1_onclick() call AcuGTAX.src("http://www/Acucorp.com/demo/demo.acu") call AcuGTAX.AcuEmbedded(1) call AcuGTAX.AcuExecute() end sub </SCRIPT>
Only one instance of the Web runtime is allowed. You cannot have multiple instances of the runtime in one browser instance.
To script runtime options, use the AcuOptions property. For example, to implement the configuration file and error file options with VB Script, you would use:
<SCRIPT LANGUAGE="VBScript> Sub window_onLoad() call AcuGTAX1.SRC("http://www.acucorp.com/demo.acu") call AcuGTAX1.AcuEmbedded(1) call AcuGTAX1.AcuOptions(" -c cblconfi –e error.txt") call AcuGTAX1.AcuExecute() end sub </SCRIPT>