Accessing GPS on Blackberry using Javascript and sending lat/long values to a server via url

Accessing GPS on Blackberry using Javascript and sending lat/long values to a server via url

When you obtain the lat/long values from a GPS enabled blackberry device, how do you send those values to a server via a url? By the way, I'm trying to do this in Javascript. "window.location.href=..." works fine on the iphone.

I was thinking something like this would work but it doesn't seem to:

function locationCB() { 	 							     window.location.href=""+blackberry.location.latitude+"/longitude:"+blackberry.location.longitude;     return true; }  if ( window.blackberry && blackberry.location.GPSSupported) {     	blackberry.location.onLocationUpdate("locationCB()");     	blackberry.location.setAidMode(2);     	blackberry.location.refreshLocation(); } 

Read header files and do something before full photo upload happens


how to send objecs from an iPhone app to a server app using XML?
I wish I had a better answer (still looking for it myself). What dpi resolution is used for an iPhone App?However, what I DO know is this most BlackBerry's don't support JavaScript.. Loading Accessory callout view for mkannotationview Good news is this it is compatible with Geolocation.. How to display a base64 image within a UIImageView? Here's a link for its variables: Setting property value of parent viewcontroller class from child viewcontroller?
Disable iphone home button in app, is it possible?refreshing mkannotation properties and refreshing the annotation


If the problem is to send data to server, try this:. http://www.any[page with gps gather code]?latitude=[value]&longitude=[value]. See
Using URL Parameters
How to send GPS data using HTTP to your web site . Code to parse url parameters will depend on server platform. ASP.NET Passing Parameters from One Page to Another
how to extract parameter from URL using PHP
Java - Access parameters passed in the URL .

60 out of 100 based on 35 user ratings 870 reviews