On Jun 25, 1:11 pm, syd636 <[email protected]> wrote:
> Thank you all for your comments.  I've had them correct the Body
> onload, delete the reference to maps.js and bring the mapping code
> back to the page.... and this is now where we 
> are:http://www.nationwidechildrens.org/gd/templates/pages/pfv/PFV.aspx?pa...
> We're closer.  However it apparently doesn't draw up in IE 6 which is
> that particular hospital's "standard" browser.  I don't have IE6 so if
> anyone can try it for me and tell me what it does that would be cool.
> Any suggestions on how to fix whatever it's doing in IE6 would also be
> greatly appreciated.

It seems to "work" in IE6.  I get an error:
Line: 25
Char:
Error: Object expected

on this line:
<body leftmargin="0" topmargin="0" marginheight="0"  marginwidth="0"
bgcolor="#000000" onload="initialize()" onunload="GUnload()">
(it doesn't like the initialize() function call)

Where is the initialize function defined?

You have the map script inside a table, that never used to work.  The
2 best options are either put it at the very bottom of the page (just
before the </body> tag, or in a function defined in the head which is
called onload.

  -- Larry

>
> The other thing that i noticed is that the "Get Directions" accessed
> through the info window works but the stand-alone "Get Directions" box
> to the right of the map does not....not sure why.
>
> I haven't had them try the suggestion from Martin &  Ross [which I
> believe are the same] suggesting a window.onload command.  Mostly
> because I'm not 100% sure how to do that.  I understand I would remove
> the body onload and onunload commands...but where would the could that
> Martin provided be placed?  Line 31?
>
> Kathy
>
> On Jun 11, 2:31 pm, warwound <[email protected]> wrote:
>
> > If you need to add onload and onunload events to a page where you have
> > no access to the BODY html tag then try this:
>
> > if(window.addEventListener){ window.addEventListener( "load",
> > myOnload, false ); } else { window.attachEvent( "onload",
> > myOnload ); }
> > if(window.addEventListener){ window.addEventListener( "unload",
> > GUnload, false ); } else { window.attachEvent( "onunload",
> > GUnload ); }
>
> > myOnload() being a function you've defined to execute on page load.
>
> > GUnload() being the API function to execute when a page is unloaded -
> > it frees memory used by the API once no longer needed.
>
> > Martin.
>
> > On 11 June, 17:22, Rossko <[email protected]> wrote:
>
> > > > My code:http://www.sgitest.com/nw2/nw_unity2.htm
>
> > > > Their test page incorporating the above 
> > > > code:http://www.nationwidechildrens.org/gd/templates/pages/pfv/PFV.aspx?pa...
>
> > > Your page includes -
> > > <body onload="initialize()" onunload="GUnload()"
> > > Theirs doesn't.
>
> > > CMS often mess with <body>, you'd be better using 
> > > window.onloadhttp://javascript.about.com/library/blonload.htm
> > > but beware if there may be multiple onload functions
>
> > > cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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