You have two "map" variables, one global and one local to your loadMap()
function. The one that's local to loadMap() works and is used by
MDControl().

Javascript launched by clicking on a HTML element executes in global
context, so it uses the one that's global.

Firefox performs single-pass parsing, so the global copy of
   var map = new GMap2(document.getElementById("map"));
on line 83 fails, because the
   <div id="map">
on line 132 hasn't been seen yet.

Try changing your first "var map" line to
   map = new GMap2(document.getElementById("map"));
and the second one to
   var map;
That way everything will be using the same global variable.


There may well be other problems.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


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