AJS_ODL API

Headings
Definitions
and
Notes
Opt ............... Optional instance/property (where applicable). An application may use or ignore optional return-objects/-values.
N .................. Number of instances required, permitted or available within the scope in question (applies only to user-createable objects, a dash is shown for object properties).
Object ........... Any object with an Object prototype.
* .................. Many/Any-Class.
Func ............. Function.
NumLit/Num .. Number literal or number object.
StrLit/Str ........ String literal or string object.
1 .................. Mandatory for all LoadMethods, except 'LINK', 'SCRIPT' and 'XHR', for which it is disallowed.
2 .................. Optional for 'IFRAME', 'IMG', 'LINK' and 'SCRIPT' LoadMethods, disallowed for 'AUDIO', EMBED', 'OBJECT' and 'VIDEO'.
3 .................. Optional for 'AUDIO', 'IMG', 'LINK', 'SCRIPT', and 'VIDEO' LoadMethods, redundant for 'IFRAME', disallowed for 'EMBED' and 'OBJECT'.
4 .................. Optional for 'XHR' LoadMethod, disallowed for all others.
5 .................. Optional for all LoadMethods except 'XHR', for which it is disallowed.
6 .................. Optional for any HTML-element attribute, except asynch, data, href, onerror, onload, src, which are disallowed.
Top-Level
Types
Name Class Opt N Arguments Returns Description
createAJS_ODL Object N 1 ( Object AJS, Function createDefMgr, Function onException) Object AJS_ODL
createAJS_ODL_Validated Object N 1 ( Object AJS, Function createDefMgr, Function onException, Object AJS_Validator) Object AJS_ODL (method-call validated)
LoadDef Object Y 0..* – – –
AJS_ODL
Properties
applyLoadDef Function – – ( Object MethodOwner, Object LoadDef [, StrLit/Str MethodOwnerName]) undefined –
pushLoadDef Function – – ( Object MethodOwner, Object LoadDef [, StrLit/Str MethodOwnerName]) undefined –
applyLoadDefQueue Function – – ( ) NumLit No. defs applied
AJS_Validator_Tag StrLit – – – – –
Version StrLit – – – – –
LoadDef
Properties
MethodNames Array Y – – – –
URLs Array N – – – –
LoadMethod StrLit/Str Y – – – –
onCreation Function 1 – ( Object LoadDef, Object Element) undefined –
onLoad (non-XHR LoadMethods) Function 2 – ( Object LoadDef, Object Element, Object Event) undefined –
onError (non-XHR LoadMethods) Function 3 – ( Object LoadDef, Object Element, Object Event) undefined –
onLoad (XHR LoadMethod) Function N – ( Object LoadDef, Object XHRObj) undefined –
onError (XHR LoadMethod) Function N – ( Object LoadDef, Object XHRObj) undefined –
onTimeout Function 4 – ( Object LoadDef) undefined –
TimeoutDelay Number 4 – – – –
Attributes Object 5 – – – –
MethodNames
Members
MethodName StrLit/Str N 1..* – – –
Attributes
Properties
Property StrLit/Str/Func 6 0..* – – –
LoadMethod
Values
AUDIO StrLit/Str – – – – –
EMBED StrLit/Str – – – – –
IFRAME StrLit/Str – – – – –
IMG StrLit/Str – – – – –
LINK StrLit/Str – – – – –
OBJECT StrLit/Str – – – – –
SCRIPT StrLit/Str – – – – –
VIDEO StrLit/Str – – – – –
XHR StrLit/Str – – – – –
Call-Backs createDefMgr Function N – ( StrLit/Str ClientName, StrLit/Str DefType, Function onException) Object DefMgr
onException Function N – ( StrLit/Str ExceptionClassName, StrLit/Str Message [, NumLit/Num StackOffset]) undefined –