> Also, it seems that you cannot have an onLoad() in the body tag of an html
page when using the dynapi. Is this correct?  Thanks very much for
> any help.

I've worked something out for this "problem"  Here's the code I implemented:

1. Add a  property to the DynAPI {} object called hookLoad : ''  and
hookUnload : ''
2. Add these lines infront of the onload=DynAPI.loadHandler lines:

DynAPI.hookLoad=window.onload
DynAPI.hookUnload=window.onunload

3. add this line to the DynAPI's loadHandler function just before the if
(DynAPI.loaderStart)... line :

eval(DynAPI.hookLoad)

4. add this line to the DynAPI's unloadHandler function just before the if
(DynAPI.DynAPI.onUnload)... line:

eval(DynAPI.hookUnload)


Now the trick is that in your own html code you can add functions to the
onload and unload handlers by doing this:

<html>
<Head>
<script language="javascript">

window.onload=myFunction()
window.onunload=myFunction2()

myFunction() {...}
myFunction2() {...}
</script>

 and then the usual dynapi include lines:

<script language="javascript" src="../src/dynapi.js"></script>
<script language="javascript">
....


So you must use functions, and they must be added BEFORE the dynapi code.

any questions..just ask :-)
-
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to