[Solved] problem with google map in IE6

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
firfelin

[Solved] problem with google map in IE6

Post 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
Last edited by firfelin on Tue Jul 29, 2008 3:27 pm, edited 1 time in total.
Jean le Chauve

Re: problem with google map in IE6

Post by Jean le Chauve »

Try to remove your hacks IE and see...
firfelin

Re: problem with google map in IE6

Post by firfelin »

mmmh..... don't have any hacks
Jean le Chauve

Re: problem with google map in IE6

Post by Jean le Chauve »

Sorry, conditional comments
firfelin

Re: problem with google map in IE6

Post by firfelin »

yeah I tried that... I removed all but the map; but no :'( I become crazy
Jean le Chauve

Re: problem with google map in IE6

Post 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. ;)
Last edited by Jean le Chauve on Mon Jul 28, 2008 6:54 pm, edited 1 time in total.
firfelin

Re: problem with google map in IE6

Post 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...
Jean le Chauve

Re: [solved] problem with google map in IE6

Post by Jean le Chauve »

perhaps a priority problem with your re_.js
Locked

Return to “Layout and Design (CSS & HTML)”