Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
GDirection Problems in IE 6/7
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
G$  
View profile  
(1 user)  More options Jul 31 2008, 5:27 pm
From: "G$" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 14:27:01 -0700 (PDT)
Local: Thurs, Jul 31 2008 5:27 pm
Subject: GDirection Problems in IE 6/7
I am writing an app that allows users to get directions from their
home to points of interest.  When I invoke a GDirections object and
call:

directionsObj.load(startAddr+' to '+endAddr);

Everything works as expected.  The problem is that it seems to be
making a rogue request to the index.php page in the background.  Since
I require users to be logged in, and destroy their session on index,
this is a problem.  Basically if you get directions you get logged
out.

Any help at all is appreciated.  Thank you.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Jul 31 2008, 5:47 pm
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Thu, 31 Jul 2008 14:47:34 -0700 (PDT)
Local: Thurs, Jul 31 2008 5:47 pm
Subject: Re: GDirection Problems in IE 6/7
On Jul 31, 2:27 pm, "G$" <mike.ginsb...@gmail.com> wrote:

> I am writing an app that allows users to get directions from their
> home to points of interest.  When I invoke a GDirections object and
> call:

> directionsObj.load(startAddr+' to '+endAddr);

> Everything works as expected.  The problem is that it seems to be
> making a rogue request to the index.php page in the background.  Since
> I require users to be logged in, and destroy their session on index,
> this is a problem.  Basically if you get directions you get logged
> out.

> Any help at all is appreciated.  Thank you.

return false from the function that is run when the form is submitted?

If you post a link, we might be able to do more than guess...

  -- Larry


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
(1 user)  More options Jul 31 2008, 6:00 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 18:00:33 -0400
Local: Thurs, Jul 31 2008 6:00 pm
Subject: Re: GDirection Problems in IE 6/7

Unfortunately I cannot provide a link, but I can show you the code.  I just
have an html page with two divs, one for "map" and the other for "route".
body onLoad i call verysimple();

function verysimple() {
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GScaleControl());
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());

    var state_center = '0,0';
    coord = state_center.split(',');
    map.setCenter(new GLatLng(coord[0], coord[1]), 7);

    var directionsPanel;
    directionsPanel = document.getElementById("route");
    directionsPanel.style.display = 'block';
    directionsPanel.innerHTML = '';

    var mapdirections;
    mapdirections = new GDirections(map, directionsPanel);
    var start = '5849 Forbes Ave, Pittsburgh PA 15217';
    var end = '202 Terrace Ct, Trafford PA 15085';
    mapdirections.load(start + ' to ' + end);
    return false;

}

On Thu, Jul 31, 2008 at 5:47 PM, geocode...@gmail.com
<geocode...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jul 31 2008, 6:05 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 31 Jul 2008 15:05:11 -0700 (PDT)
Local: Thurs, Jul 31 2008 6:05 pm
Subject: Re: GDirection Problems in IE 6/7

> Unfortunately I cannot provide a link, but I can show you the code.

Not much use withoutthe HTML in this case,  And please don't post that
as well !

As your map is behind a login you'll be able to call on support from
Google Premier I expect.

cheers, Ross K


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
(1 user)  More options Jul 31 2008, 6:09 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 18:09:41 -0400
Local: Thurs, Jul 31 2008 6:09 pm
Subject: Re: GDirection Problems in IE 6/7

Well the html is amazingly simple.  Just two divs within the <body> tags.
One with an id="map" and another with id="route".  Then an onload call in
the body tag itself.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
 More options Jul 31 2008, 6:18 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 18:18:04 -0400
Local: Thurs, Jul 31 2008 6:18 pm
Subject: Re: GDirection Problems in IE 6/7

Ok I set up this script on a personal site so that you guys can look at it.
To reproduce go to:
http://www.hellgaters.com/index_beta.php
and click on "Click here for map"

After refreshing the page you'll see a debugging message that says "SET UP"
indicating that a session variable was set on index.php.

On Thu, Jul 31, 2008 at 6:09 PM, Mike Ginsburg <mike.ginsb...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jul 31 2008, 6:23 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 31 Jul 2008 15:23:21 -0700 (PDT)
Local: Thurs, Jul 31 2008 6:23 pm
Subject: Re: GDirection Problems in IE 6/7

> Well the html is amazingly simple.  Just two divs within the <body> tags.

Maybe that's the problem, you need to call the Google API in a script
tag etc.?!?

Your map.setCenter() has problems, as its operating on strings rather
than numbers, but i can't see how that would cause the described
symptoms.

good luck, Ross K


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden [Andrew Leach - Maps API Guru]  
View profile  
 More options Jul 31 2008, 6:41 pm
From: "warden [Andrew Leach - Maps API Guru]" <andrew.leac...@googlemail.com>
Date: Thu, 31 Jul 2008 15:41:32 -0700 (PDT)
Local: Thurs, Jul 31 2008 6:41 pm
Subject: Re: GDirection Problems in IE 6/7
On Jul 31, 11:18 pm, "Mike Ginsburg" <mike.ginsb...@gmail.com> wrote:

> Ok I set up this script on a personal site so that you guys can look at it.
> To reproduce go to:http://www.hellgaters.com/index_beta.php
> and click on "Click here for map"

> After refreshing the page you'll see a debugging message that says "SET UP"
> indicating that a session variable was set on index.php.

I don't get that. But I don't get redirected to index.php either. I
can't see anything in the HTML produced by index_beta.php or
location.php, or in any of the included Javascript scripts, which does
that.

That leads me to the conclusion that something in the PHP is doing the
redirection, presumably because a cookie isn't being set correctly.
That's probably machine-specific: it doesn't happen to me in Firefox
or IE6.

Andrew


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
 More options Jul 31 2008, 6:52 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 18:52:12 -0400
Local: Thurs, Jul 31 2008 6:52 pm
Subject: Re: GDirection Problems in IE 6/7

It's odd that the debugging message is not showing up for you.  I converted
it to an html page and confirmed in my access logs that index.php is still
being requested as soon as the directions get displayed.  No php involved
here.

On Thu, Jul 31, 2008 at 6:41 PM, warden [Andrew Leach - Maps API Guru] <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Jul 31 2008, 6:55 pm
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Thu, 31 Jul 2008 15:55:24 -0700 (PDT)
Local: Thurs, Jul 31 2008 6:55 pm
Subject: Re: GDirection Problems in IE 6/7
On Jul 31, 3:52 pm, "Mike Ginsburg" <mike.ginsb...@gmail.com> wrote:

> It's odd that the debugging message is not showing up for you.  I converted
> it to an html page and confirmed in my access logs that index.php is still
> being requested as soon as the directions get displayed.  No php involved
> here.

FWIW - I don't get the debugging message (or redirected to index.php)
either.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
 More options Jul 31 2008, 6:57 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 18:57:42 -0400
Local: Thurs, Jul 31 2008 6:57 pm
Subject: Re: GDirection Problems in IE 6/7

There is no redirecting.  The index.php request happens in the background.
I've confirmed on 4 separate machines now that refreshing the "location.php"
page spits out the debugging message.

On Thu, Jul 31, 2008 at 6:55 PM, geocode...@gmail.com
<geocode...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jul 31 2008, 7:41 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 31 Jul 2008 16:41:09 -0700 (PDT)
Local: Thurs, Jul 31 2008 7:41 pm
Subject: Re: GDirection Problems in IE 6/7

> > > > > To reproduce go to:http://www.hellgaters.com/index_beta.php
> > > > > and click on "Click here for map"

umm, well that changed while I was looking at it so I guess you're
working on it.

I did see the test code run once at location.php, and Firebug told me
that yes indeed location.php was called for a second time after the
Gdirections work.   Didn't find out who dunnit, but I'm suspicious of
scriptaculous.

I cannot see how it could relate, but there is a potential pitfall
with your javascript GMap2 object;

In the non-test loadMap() code that is currently running, it's called
'map' but is not global.  IE especially can get confused and try to
use the <div> called 'map' as the object instead.

In the test verysimple() code the object isn't named 'map' but it is
still not global.  I'm a bit concerned this may confuse the GDirection
load when it asynchronously updates the map after the function has
closed.

verysimple() doesn't have a map.setCenter() at all now, which is
usually not advisable.

cheers, Ross K


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jul 31 2008, 7:43 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 31 Jul 2008 16:43:42 -0700 (PDT)
Local: Thurs, Jul 31 2008 7:43 pm
Subject: Re: GDirection Problems in IE 6/7
p.s forgot to say I saw no SET UP message either.  The directions
display looked to work okay.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rossko  
View profile  
 More options Jul 31 2008, 7:49 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 31 Jul 2008 16:49:56 -0700 (PDT)
Local: Thurs, Jul 31 2008 7:49 pm
Subject: Re: GDirection Problems in IE 6/7
On reflection, I'd bet that the trigger is the expansion of the <div>
to hold the text directions.  Causing one of other scripts (that are
way beyond me!) to do something, like trigger the first menu option
(index.php).

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Ginsburg  
View profile  
 More options Jul 31 2008, 8:34 pm
From: "Mike Ginsburg" <mike.ginsb...@gmail.com>
Date: Thu, 31 Jul 2008 20:34:48 -0400
Local: Thurs, Jul 31 2008 8:34 pm
Subject: Re: GDirection Problems in IE 6/7

I appreciate the input guys.  I've eliminated pretty much everything that
could be client side here.  I have a standard html page that simply loads
the directions and my access log still shows a hit to index.html as soon as
the directions.load() finishes.  I haven't been able to find any other
documented cases of this, but I have now confirmed on 7 pcs with the site
loaded on 3 different servers.

My short term fix was to check the HTTP_REFERER on my index.php page and not
log you out.

Thanks again for the effort


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google