Gmail Calendar Documents Reader Web more »
Help | Sign in
Google Groups Home
Cancelling GClientGeocoder
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
  4 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
 
Ben  
View profile  
 More options Nov 12, 4:26 pm
From: Ben <b...@ben-robinson.com>
Date: Thu, 12 Nov 2009 13:26:09 -0800 (PST)
Local: Thurs, Nov 12 2009 4:26 pm
Subject: Cancelling GClientGeocoder
Hi,

Im just looking at GClientGeocoder in order to do a reverse geocode.
I've used geocoder.getLocations(GLatLng) to begin a search.  At this
point I also provide the user with a 'cancel' link to prevent the user
waiting if the information is not forthcoming.

But I can't see how I can stop the callback being called if the user
clicks 'cancel'.

I tried geocoder.reset() - but that didn't work!!

I guess I'll see if the cancel link is still visible or not - but
surely there is a better way??

Any ideas?

Many thanks

Ben


    Reply    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 Nov 12, 4:37 pm
From: Rossko <ros...@culzean.clara.co.uk>
Date: Thu, 12 Nov 2009 13:37:14 -0800 (PST)
Local: Thurs, Nov 12 2009 4:37 pm
Subject: Re: Cancelling GClientGeocoder

> But I can't see how I can stop the callback being called if the user
> clicks 'cancel'.

Once you've issued the request, you can't stop the response (if there
is one).  You can choose to ignore it though - modify your callback
routine to test some condition that is set or unset by the cancel
button.

    Reply    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.
Ben  
View profile  
 More options Nov 12, 6:21 pm
From: Ben <b...@ben-robinson.com>
Date: Thu, 12 Nov 2009 15:21:31 -0800 (PST)
Local: Thurs, Nov 12 2009 6:21 pm
Subject: Re: Cancelling GClientGeocoder
:-(

Oh well - many thanks for your quick response!

On Nov 12, 9:37 pm, Rossko <ros...@culzean.clara.co.uk> wrote:


    Reply    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 Williams  
View profile  
 More options Nov 12, 10:11 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Fri, 13 Nov 2009 03:11:00 +0000
Subject: Re: Cancelling GClientGeocoder
Your users would have to be pretty fast to manage to hit the cancel
button before the GClientGeocoder timeout. If the server hasn't
responded in half a second, the client gives up and returns
G_GEO_SERVER_ERROR.

--
Mike Williams
http://econym.org.uk/gmap


    Reply    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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google