|
ION Script User's Guide: ION Script Tag Reference |
|
When an ION script is parsed, ION Script tags and attributes are converted to HTML. HTML tags, as well as HTML attributes used in ION Script tags, are passed through to the browser unchanged. This allows you to use any valid HTML in your ION scripts, and ensures that you can always make use of the latest HTML features as Web browsers and the HTML language evolve.
By knowing what HTML is produced by each ION Script tag, you can include in your ION Script tag any attributes associated with the corresponding HTML tag. For example, the ION_BUTTON tag, when used with the TYPE="IMAGE" attribute, is converted to the following HTML:
<INPUT TYPE="IMAGE" BORDER="1">
Knowing that the <ION_BUTTON> tag becomes an HTML <INPUT> tag allows you to include in your <ION_BUTTON> tag any valid attributes of the <INPUT> tag. For example, you could include the ALIGN attribute to the <INPUT> tag as follows:
<ION_BUTTON EVENT="myevent" SRC="http://www.ittvis.com/images/ion_sm.png" ALIGN="middle" TYPE="IMAGE"/>
For each ION Script tag documented in this reference, you will find a section called "HTML Mapping". The "HTML Mapping" section for each ION Script tag specifies the HTML that is produced by that tag, if any. You can then consult an HTML reference to get a list of all the attributes that the HTML tag supports.
Note that certain ION Script tag attributes are converted to HTML attributes. You cannot directly specify an HTML attribute if that attribute is created from an ION Script attribute. For example, the ION Script code
<ION_BUTTON EVENT="event" TYPE="BUTTON"/>
is converted to the HTML
<INPUT TYPE="SUBMIT" NAME="event"/>
Therefore, if you specify the NAME attribute in the ION_BUTTON tag, it will be ignored.
IDL Online Help (March 06, 2007)