PHP Classes

PROBLEM WITH INTERNET EXPLORER

Recommend this page to a friend!

      Easy Google Map  >  All threads  >  PROBLEM WITH INTERNET EXPLORER  >  (Un) Subscribe thread alerts  
Subject:PROBLEM WITH INTERNET EXPLORER
Summary:BUG WITH EXPLORER
Messages:7
Author:raven
Date:2008-08-29 00:58:07
Update:2009-06-12 16:32:03
 

  1. PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of raven raven - 2008-08-29 00:58:07
When using any google map within a table in Internet Explorer, the map gets only printed partially.We need a fix for this class as e can't use the javascript onload function here neither the Gmap mapresize function.
Any suggestion would be greatly appreciated.
Thanks!

  2. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of Mitchelle Pascual Mitchelle Pascual - 2008-08-29 01:41:36 - In reply to message 1 from raven
Hi Raven,

Try this one

<?php
require'EasyGoogleMap.class.php';
$gm = & new EasyGoogleMap("ABQIAAAAoM-kEW8yHxWwveOZAouVXhTkQdzC1XuexHlQDsWmu58XcfHJ8xQB-xtA9nt_7NDWTsfJfHHxosdNZg");
$gm->SetMarkerIconStyle('STAR');
$gm->SetMapZoom(10);

$gm->SetAddress("Manila, Philippines");
$gm->SetAddress("Quezon City, Philippines");
$gm->SetAddress("Set another address near manila, philippines or quezon city, philippines");
$gm->SetAddress("Set another address near manila, philippines or quezon city, philippines");
$gm->SetAddress("Set another address near manila, philippines or quezon city, philippines");

?>
<html>
<head>
<title>EasyGoogleMap</title>
<?php echo $gm->GmapsKey(); ?>
</head>
<body>
<table width="90%" border="0" cellspacing="0" cellpadding="0" id="border_white">
<tr>
<td width="516" height="316">
<?php echo $gm->MapHolder(); ?>
<?php echo $gm->GetSideClick(); ?>
</td>
</tr>
</table>
</body>
</html>
<?php echo $gm->InitJs(); ?>
<?php echo $gm->UnloadMap(); ?>

It should work fine. :)

  3. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of raven raven - 2008-08-29 15:39:06 - In reply to message 2 from Mitchelle Pascual
Fantastic Mitchelle !
Thanks a million times! It worked at last.I had tried many possibilities to get some parameters from the class outside of the table but didn't think of putting appart the UnloadMap and initJS. That's a nice to avoid the I.E table problem.So now this class can be used as the GoogleMp API on explorer too.Thanks again!

  4. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of daniele daniele - 2008-09-07 23:37:49 - In reply to message 3 from raven
there are some problem fo ex. if you chose some option or change the size or if yuo can push the icon on the map ...thanx for all support you can i use ff - ie6 and safari like browser

  5. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of daniele daniele - 2008-09-08 22:47:18 - In reply to message 4 from daniele
don't worry i solved it 10 minut after i posted the message with other method the real problem in your script is js...thanx the same.

  6. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of Doug Hockinson Doug Hockinson - 2009-04-01 22:43:54 - In reply to message 2 from Mitchelle Pascual
At the following URL is a suggested work-around for maps within tables and the MS IE bug. I tried it but the side links no longer work. It fixes the display problem, but the side links don't work.

groups.google.com/group/Google-Maps ...

Another forum suggested inserting map.checkResize(); to force the map's size to be calculated correctly ... but I was unable to determine where to insert this.

  7. Re: PROBLEM WITH INTERNET EXPLORER   Reply   Report abuse  
Picture of Patrick Bielen Patrick Bielen - 2009-06-12 16:32:03 - In reply to message 2 from Mitchelle Pascual
Well it does not fix the problem.

this is what i have...

<html>
<head>
<title>Google Maps ByOrder</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body {
position: absolute;
top: 0px;
left: 0px;
margin: 0px;
width: 100%;
height: 100%;
padding: 0px;

}
</style>
</head>
<body>
<?php
require'googlemaps.class.php';
$query = $_GET['query'];
$gm = & new EasyGoogleMap($googlemaps_api);
$gm->SetMarkerIconStyle('PUSH_PIN');
$gm->SetMapZoom(13);
$gm->SetMapWidth(800);
$gm->SetAddress($query);
$gm->SetInfoWindowText($query);
?>
<html>
<head>
<title>Kaart</title>
<?php echo $gm->GmapsKey(); ?>
</head>
<body>
<table cellspacing="0" cellpadding="10" border="0" bgcolor="#c4c4c4">
<tr><td bgcolor="#a4a4a4"><?php echo $query; ?></td></tr>
<tr><td><br />
<?php echo $gm->MapHolder(); ?>
<?php echo $gm->GetSideClick(); ?>
<?php echo $gm->InitJs(); ?>
<?php echo $gm->UnloadMap(); ?>
</td></tr>
</table>
</body>
</html>

It still has the problem on ie7 and ie8 even with compat mode.
Works like a charm on FF, is there no way to fix it for IE ?

Best Regards,

Bielco