BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-06-2008, 06:12 PM   #1
mateo666
New Member
 
Join Date: May 2008
Model: 8830
PIN: N/A
Carrier: bell
Posts: 11
Default 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
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

VINTAGE APPLE PORTFOLIO NOTEBOOK BINDER 1996
$35.12
VINTAGE APPLE PORTFOLIO NOTEBOOK BINDER 1996 pictureVintage Apple Blossom Model ABS-138R Regulated Power Supply 4 Amp 13.8 VDC J
$8.99
Vintage Apple Blossom Model ABS-138R Regulated Power Supply 4 Amp 13.8 VDC J pictureVintage Apple Silentype Black Image Thermal Paper, NOS
$25.0
Vintage Apple Silentype Black Image Thermal Paper, NOS pictureXC68040RC25M Motorola VINTAGE 32-BIT Apple CPU GOLD PGA
$40.0
XC68040RC25M Motorola VINTAGE 32-BIT Apple CPU GOLD PGA pictureVintage Apple Bezel, 076-0762, New In The Box.
$19.0
Vintage Apple Bezel, 076-0762, New In The Box. picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.