On Aug 5, 11:27 am, "[email protected]" <[email protected]> wrote: > On Aug 5, 10:22 am, Raymend <[email protected]> wrote: > > > Add brackets at the end of the code, then it should work in both IE > > and firefox like: > > <script> > > document.body.onload = initialize(); > > document.body.onunload = GUnload(); > > That syntax is incorrect, it executes the function and assigns the > results of that execution to the body onload (an onunload) event(s), > which is not what is required. > > The: > > document.body.onload = initialize; > document.body.onunload = GUnload; > > should work, unless something else in his code is overwriting the body > onload/onunload events. In which case he will have to write code to > chain the functions.
typing: javascript:initialize(); in the address bar displays the map, which implies somewhere in your code something is overwriting the onload event. Try this at the very end of the page (just before the </body> tag) <script> initialize(); </script> If that doesn't work you will need to implement chaining the body onload functions (which has been discussed before) -- Larry > > > > </script> > > > Raymendhttp://www.dyngeometry.com > > > On Aug 5, 11:37 am, Lastwolf <[email protected]> wrote: > > > > Hello all, > > > > I have the opposite display problem than most. My map displays fine in > > > IE, Chrome and Safari but will not display in Firefox. This is a > > > DotNetNuke site and I had to replace the: > > > > <body onload="initialize();" onunload="GUnload()"> with: > > > > <script> > > > document.body.onload = initialize; > > > document.body.onunload = GUnload; > > > </script> > > > > because I have no way to to modify the body tag. I'm not sure if that > > > is what is causing the issue. I suppose I could load in an I-frame but > > > prefer to display in a div on the page. > > > > Here is the > > > link:http://www.richardenglish.com/Photography/Italy/Arezzo.aspx > > > > Any help is appreciated. > > > > Richard English- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- 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.
