Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Hendrix] navigator.geolocation.getCurrentPosition() seems unstable

33 views
Skip to first unread message

jason wilson

unread,
May 13, 2009, 1:38:10 PM5/13/09
to
Name: jason wilson
Email: jasonatplatialdotcom
Product: Firefox
Summary: navigator.geolocation.getCurrentPosition() seems unstable

Comments:
running 3.5b4
testing out the geolocation stuff

it's working part of the time,
but ~ about half the time it's returning error 2 (failed to get location (server side))

the specifics of when it works/fails are as follows:
* if i restart firefox, it will 'almost always' (90%) return a good position object
* if i hit the refresh button that chances of success decline to about 70%
* if i resubmit the url in the address bar (instead of just hitting refresh) the chance for
success declines to ~ 20%
* once an error has been returned, i cannot get a successful response till i restart firefox

i have tried switching between getCurrentPosition() and watchPosition() with little difference
(although watchPosition()'s successive auto requests do perform better than the manual page
refreshing, in fact they remain > 90%)

my code is running on localhost, but that really shouldn't make any difference right?

i'm on a macbook with 10.5.x up to date.

(it would be so great if firebug was available for this beta :)

Browser Details: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16
From URL: http://hendrix.mozilla.org/

Note to readers: Hendrix gives no expectation of a response to this feedback
but if you wish to provide one you must BCC (not CC) the sender for them to
see it.

0 new messages