During its loading the DFrameAPI.js library creates the dFrameAPI
object. The onLoad() method of this object is launched when all libraries and
resources (additional libraries specified by DFrameAPI.include as well as the
images defined in the Style objects) are loaded.
The developer must define
this method by associating it to the specific code of his application:
DFrameAPI.onLoad= function() {
...
}
Example :
var dFrameFilePath =
'../dFrame / ';
<script
language="Javascript " src=
"../dFrame/dFrame/lib/dFrameAPI.js"></script>
<script language="Javascript">
DFrameAPI.include('sample/Demo/styleHome.js')
DFrameAPI.onLoad=
function() {
var dFrame = new DFrame(parameters);
dFrame.show();
}
</script>
§
<BODY
onLoad="alert('body onload')">: will be ignored
§
<script
language="Javascript">
onload = function() { alert('onload');
}
</script>: works but
disable DFrameAPI.onLoad function and thus
cannot be used.