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


Radio Frequency Systems TRIM TOOL-LCF12-D01-A picture

Radio Frequency Systems TRIM TOOL-LCF12-D01-A

$199.99



DIY FM Radio Electronic Kit Frequency 87-108MHz DIYPractice Solder RDA5807S picture

DIY FM Radio Electronic Kit Frequency 87-108MHz DIYPractice Solder RDA5807S

$16.67



VNUS Medical Technologies Radio Frequency Generator RFG2 Version 4.4.0 picture

VNUS Medical Technologies Radio Frequency Generator RFG2 Version 4.4.0

$2500.00



Radio Frequency System RFE4000A Tuned TX 461.4375 RX 466.4375 picture

Radio Frequency System RFE4000A Tuned TX 461.4375 RX 466.4375

$150.00



Radio Frequency Systems RFC Celwave Miniplexer 7660-1 Freq Hi 458.750 Low 453.75 picture

Radio Frequency Systems RFC Celwave Miniplexer 7660-1 Freq Hi 458.750 Low 453.75

$196.95



Lot of 50 HDW-IMP-80 Imprivata RF IDEAS Radio Frequency Proximity Reader picture

Lot of 50 HDW-IMP-80 Imprivata RF IDEAS Radio Frequency Proximity Reader

$489.99







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