Appxweb Meta
Home > Developer > Objects > script


meta - AML object declaration extension - AML object declaration package - AML object declaration data - AML object declaration function - AML object declaration view - AML object declaration scalar - AML object declaration array - AML object declaration pointer - AML object declaration script - AML object declaration call_script - AML object declaration render - AML object declaration navigate - AML object declaration menu - AML object declaration menu - AML object declaration dialog - AML object declaration report - AML object declaration window - AML object declaration

<script>

Figure: Object Chart (script Object Highlighted)
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