>  Could someone show me why googlemap only works with
> <body onload="onLoad();">
> and not with
> <?
> echo "<script language=javascript>onLoad()</script>";
> ?>

Because the script tag would run the onLoad() function before the
<div> to contain the map has been created, in some browsers.  You
probably get a browser error to that effect.
If you must do it that way, try putting that script tag as the last
item in the <body> section.

-- 
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