View Single Post
Old 05-06-2007, 08:57 AM   #16 (permalink)
bionicDan
New Member
 
Join Date: May 2007
Model: 8800
PIN: N/A
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?

Quote:
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...

Code:
<html>
<body>
<script language="Javascript">
<!--
if(blackberry.location.GPSSupported) {
blackberry.location.setAidMode(1);
blackberry.location.refreshLocation();
blackberry.location.onLocationUpdate(window.alert("Your new
position is " + blackberry.location.latitude +
" degrees latitude and " +
blackberry.location.longitude +
" degrees longitude."));
}
//-->
</script>
</body>
</html>
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:

Code:
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...
Code:
Your new position is 0 degrees latitude and 0 degrees longitude.
Offline   Reply With Quote