Hi i ve got a problem and i m begging for help. The problem occurs
only at IE. In forefox it works fine. I have an iframe in which i have
put a google map and when i press a button i send a variable which has
the coordinates to the destination and it calculates the route. When i
press the button in IE i have the error:"google is undefined" and then
the error "directionService is null or not an object". Can you help me
please???The code is below:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="../javascript/jquery.iframe.js"></
script>
<body>
<div id="insertmap">
        <iframe src="../google_maps/maps.php?lat=40.523630&lng=22.977523"
frameborder="no" width="100%" height="100%" scrolling="no" name="gmap"
id="gmap"></iframe>
</div>
<div id="mapbutmet"><a href="#"><img src="../images/forms_photos/
diafores/map_button.png" width="100%" height="100%"/></a></div>
<script>
                        $("#mapbutmet a").click(function(e){
                                e.preventDefault();
                                alert(this.id);
                                $.get("../google_maps/maps_bak.php",
{coor:"40.640705,22.920141",lat:"40.523630",lng:"22.977523"},
function(data) {
                                $("#insertmap").html("<iframe name=\"gmap\" 
id=\"gmap\"
frameborder=\"no\" width=\"100%\" height=\"100%\" scrolling=\"no\"></
iframe>");
                                $("#gmap").squirt(data);

                                });
                        });
</script>
</body>


and the file maps.php you can find it in the archive:

http://users.cs.uoi.gr/~chpapage/maps.rar

I hope someone can help!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to