Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: Capturing GPS coordinates while in browser

Your code is wrong. You're calling the alert while the script is executing and passing the return value from the alert to the onLocationUpdate method. Obviously the location.latitude and longitude will be zero when they are evaluated, because refreshLocation hasn't even been called yet.

Highlighted
New Member
Posts: 1
Registered: ‎07-16-2010
My Device: Not Specified

Re: Capturing GPS coordinates while in browser

That bit.ly URL is returning error 400 now.  Could you post the full code example or the full URL of where your example is hosted?  I'm getting 0s for my latitude and longitude, but I'm not sure if it's my device or my code.