Anybody have a good reliable javascript function that force an update of the gps??
Please Login to Remove!
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
|