Re: aborting getCurrentPosition()?

Hi Max,

On Wed, May 6, 2009 at 8:48 AM, Max Froumentin <maxfro@opera.com> wrote:
> Hi,
>
> Was the possibility of aborting an asynchronous operation ever considered?
> Either through abort(), a la XMLHttpRequest:
>
> var asyncOperation =  navigator.geolocation.getCurrentPosition(successCallback,  errorCallback, {maximumAge:600000});
> // Waiting for success or callback, GPS Fix is taking time, user gets bored
>

Hmm, what is the exact motivation for this? If the user gets bored,
you can just provide some 'cancel' button and set a flag so that when
you eventually get the callback (either success or error) you don't
react to it.

Thanks,
Andrei

Received on Wednesday, 6 May 2009 10:32:19 UTC