01-19-2010 03:21 AM
Hi All!!
I'm new to bb development and i'm trying to do a widget application.
that are the problem.
1) send the gps data to a server when the bb user click on a button.
I now how to collect gps data, but how can I send this data to a server?
2) load the travel plan when a bb user press a button.
how can i load the travel plan?
Please help me!!!
thanks
My config is Windows XP Professional SP3
Visual Studio 2008 Team System SP1
Blackberry Plugin for Visual Studio V2.0
01-19-2010 07:48 AM
1) send the gps data to a server when the bb user click on a button.
I now how to collect gps data, but how can I send this data to a server?
You can simply send the data to your server using an AJAX call with the XMLHttpRequest object
2) load the travel plan when a bb user press a button.
how can i load the travel plan?
Is the travel plan located on a server? If so you can retrieve the data via an XMLHttpRequest object or simply browse to a server page via an anchor tag. If it is local data, you can use the Gears SQLite database to store and retrieve your data.
In both the cases above you will need to whitelist the domain you are going to be accessing outside of your widget. This can be done in the config.xml editor in the access permissions area.
01-22-2010 05:12 AM
Hi tneil,
thanks for your good advice.