<script> | ![]() |
| Syntax | |
| Example | |
| Element: script | |
| Parent: function
Description: Declaration of a script function object. The script code is executed in a script host provided by Meta and is idenpendent of the state and context of the browser. Occurs: 0 or unbound. (i. e Within the <function> element the <script> element can occur zero or many times.) | |
| Attribute: AM_function_id | |
| Description: Unique alphanumeric indentifier of this script function object.
Value Type: string Value: user defined Occurs: 1 (i.e required) | |
| Element: type | |
| Parent: script
Description: Determines whether the script runs with the Meta script host or embedded within the windows HTML resource and therefore run within the browsers script host. Value Type: enumeration Value : hosted (default) - Script run within the Meta script host. embedded - Script is embedded within the window HTML resource and run within the browser script host. Occurs: 0 or 1 (i.e optional) | |
| Element: language | |
| Parent: script
Description: Name of the scripting language. Value Type: string (parameter) Value : name. (default) javascript Occurs: 0 or 1 (i.e optional) | |
| Element: include | |
| Parent: script
Description: URL of the script files to be included in the script. Value Type: URL Value : User defined URL of the script file. Occurs: 0 or unbound (i.e optional) | |
| Element: function_name | |
| Parent: script
Description: The name of the function within the script code where execution should start. Value Type: string (parameter) Value : function name without brackets e.g uppercase Occurs: 1 (i.e required) | |
| Element: code | |
| Parent: script
Description: The script code. Value Type: string wrapped in CData section (parameter) Value : user defined Occurs: 1 (i.e required) | |
top
