|
ION Script User's Guide: Creating ION Script Applications |
|
There are two ways to include JavaScript and VBScript in your ION Script applications:
For example, to call the JavaScript function MyFunction() when the ION_FORM is submitted, you would set the ONSUBMIT attribute as follows:
ONSUBMIT="MyFunction()"
To pop up a message box saying "Form Submitted" when the form is submitted, you could set the ONSUBMIT attribute to a single JavaScript statement as follows:
ONSUBMIT="alert('Form Submitted')"
| Note The "Advanced Examples" page, index_examples.ion, which can be accessed from the main examples page index.ion, contains several examples that demonstrate how to use JavaScript in an ION Script application, such as how to validate form data using JavaScript, and how to use JavaScript to capture mouse events in an ION_IMAGE configured as an image map. |
IDL Online Help (March 06, 2007)