On Aug 31, 8:48 pm, jason buck <[email protected]> wrote:
>
> I am stuck working inside of a templated site where the BODY TAG is in
> an include file.  I had to add the additional body tag to put in the
> onLoad="initialize();" onUnload="GUnload()" calls.

You don't have to make your HTML invalid. Javascript provides
window.onload to mimic <body onload>:

window.onload=function(){window.onload;initialize()}

This line takes whatever is already set up to be called when the page
loads and adds a function called initialize to it. I don't know how it
will fare if there is no event handler already set up (that is, if
window.onload is null within the function); but that can be rectified
with a slightly more complex version and probably doesn't apply to you
anyway.

Search the group for window.onload to find the more complicated
version, if you need it.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to