Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 17
Registered: ‎01-07-2010
My Device: Not Specified

travel application

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

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: travel application

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.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
New Developer
Posts: 17
Registered: ‎01-07-2010
My Device: Not Specified

Re: travel application

Hi