Page 1 of 1

[Solved] problem with google map in IE6

Posted: Mon Jul 28, 2008 3:51 pm
by firfelin
Hi,

I have painfully discovered that IE6 (yes...) dont displays my page with a custom google map:
http://www.mayorbeusch.ch/cms/contact

In the others browsers its perfect, but in IE6 I get an alert saying that IE is unable to display the page and dont load anything... :-\

I put this code in the template:

Code: Select all

(...)

<!-- start javascript googlemap -->
{literal}
<__script__ src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAlVoxoBw9ShhDChSJb6fu6xQmvOxX-acnWRRSaaaRlZi5KCjkwBQ3bEkpdn5_Art0PrA65cPpocXE_A"
      type="text/javascript"></__script>

    <__script__ type="text/javascript">
    //<![CDATA[
function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));

        map.setCenter(new GLatLng(46.195436, 6.144619), 16);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());

        var baseIcon = new GIcon();
        baseIcon.image = "http://www.mayorbeusch.ch/cms/uploads/images/template/mb_GM_icone.png";
        baseIcon.iconSize = new GSize(76, 60);
        baseIcon.iconAnchor = new GPoint(21, 47);

        markerOptions = { icon:baseIcon };
        var point =new GLatLng(46.195436, 6.144619);
        map.addOverlay(new GMarker(point, markerOptions));
      }
    }
    //]]>   
    </__script>
{/literal}
<!-- end javascript googlemap -->

</head>

</__body onload="load()" onunload="GUnload()">

(...)
Any idea what is wrong or how to make this f*** browser to display a google map correctly?

Thanks in advance for your help and your time

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 4:37 pm
by Jean le Chauve
Try to remove your hacks IE and see...

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 5:18 pm
by firfelin
mmmh..... don't have any hacks

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 5:31 pm
by Jean le Chauve
Sorry, conditional comments

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 5:39 pm
by firfelin
yeah I tried that... I removed all but the map; but no :'( I become crazy

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 6:10 pm
by Jean le Chauve
put the script into the metadata in the page, not into the template.
Or you can use the excellent module CGoogleMap. It work in all browser. ;)

Re: problem with google map in IE6

Posted: Mon Jul 28, 2008 7:17 pm
by firfelin
Thanks, but I would like to specifiy more options than CGGooglemap or Simplegooglemap allow.And the metadata trick doesnt work... :-\
But I think I solved my problem otherway: I put all the google javascript at the bottom of the template, just before the tag and it seems to work...

Re: [solved] problem with google map in IE6

Posted: Mon Jul 28, 2008 7:39 pm
by Jean le Chauve
perhaps a priority problem with your re_.js