 |
 |
Screenshots |
|
|
 |
Downloads |
|
|
 |
Resources |
|
|
 |
|
|
 |
|
|
|
 |
|
|
Using the IntraLaunch function ExecuteIt(), you
can dynamically change what you run or the switches you wish to pass to your program
on the fly with Javascript. You must set the Run parameter to Null for the given IntraLaunch object.
The above example demonstrates how to use ExecuteIt() to pass different switches to an IntraLaunch object.
Clicking the Launch button in
the form calls the Javascript function called Run, which in turn pulls the values program and
switches from the form and passes them to the IntraLaunch object to launch. A
pipe (|) must separate the program from any switches as shown. All other parameters such as Display
and Sound are still processed and used for the executing program.
This feature can also be used with other form objects such as drop down boxes, radio buttons, etc. Keep in mind
backslashes from Javascript may have to be escaped with another backslash. Eg. C:\\path\\to\\file.txt.
|