<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>
I have tested on device blackberry 8800 and blackberry 9000 and i am getting always 0 for blackberry.location.latitude and blackberry.location.longitude
Note: javascript support is enabled javascript location support is enabled