BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Anybody have a good reliable javascript function that force an update of the gps?? (http://www.blackberryforums.com/showthread.php?t=133836)

mateo666 06-06-2008 06:12 PM

Anybody have a good reliable javascript function that force an update of the gps??
 
Hi, i'm trying to force a refresh of a gps coordinates in the browser before submitting a form. Right now i'm doing this

blackberry.location.setAidMode(2);
blackberry.location.refreshLocation();

But i think the refreshLocation function is not forcing a refresh (if someone could confirm that behavior?) and instead just return the last received one ?

I've tried

blackberry.location.onLocationUpdate(myfunc);

but myfunc is never called. I tried with 'myfunc', "myfunc" but still never called ?

if i put myfunc() then it gets executed right away but the gps is not updated.

What i need is a way to force an update before sending a form so that the correct gps can be sent with the form.

Would be appreciated
Thanks


All times are GMT -5. The time now is 08:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.