View Single Post
Old 05-06-2007, 08:57 AM   #16 (permalink)
New Member
Join Date: May 2007
Model: 8800
Carrier: AT&T
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Just tried on the 8800

I just tried your code on a brand new 8800 running on AT&T, which I figured might be more open to browser access to GPS than Verizon devices, which have a history of being crippled. However, I get the same result: 0,0.

GPS can, however, be accessed by Java apps via JSR179.

Has anyone had any success with browser location?

Originally Posted by camisa View Post
So, I have location support enabled and javascript support for location based services within the Blackberry Internet Browser also enabled and I download a webpage with the following code from my webserver...

<script language="Javascript">
if(blackberry.location.GPSSupported) {
blackberry.location.onLocationUpdate(window.alert("Your new
position is " + blackberry.location.latitude +
" degrees latitude and " +
blackberry.location.longitude +
" degrees longitude."));
As soon as I pull up a webpage with the previous JavaScript in it which uses the Blackberry location object, I get a popup window asking:

A JavaScript has requested the physical location of your device.  Do you wish to provide this to the script?
I choose YES and I am always told...
Your new position is 0 degrees latitude and 0 degrees longitude.
Offline   Reply With Quote