Problem: When you attempt to load a 3rd party data file using AJAX calls you don't get any data.
Explanation: As a security measure, browsers don't allow you to load data from someone else's website. Firefox just doesn't allow it, IE raises a warning and Safari allows it.
Solution: Create a proxy that lives on your website which will get the file for you. The proxy looks like it's local so the browsers don't complain. Details on how to do this are on the EEE site here.
Phone resources
Here are a bunch of demo MIDLETs and GPS programs to get you going.
The basic class you need is GPSComponent. GPSComponent gets the GPS data either from a bluetooth GPS or from a source of data on the network. The network data source is hardwired in the code. You can change the URL if you want. Right now it shows some one walking on campus, getting a bus, and going to a T-Ball game.
NetDumpGPSTest
This MIDLET initializes a network GPS data source, gets the raw data and displays it.
NetFormatGPSTest
This MIDLET initializes a network GPS data source, gets the data, parses it, and displays the parts it cares about.
PrettyNetFormatGPSTest
This MIDLET initializes a network GPS data source using a nice status bar. Once the data is available it displays it.
There are analagous classes that do the same thing with a Bluetooth data source.
BlueGPSLogger
This MIDLET has an example of getting data from a Bluetooth GPS data source and then posting it to a web server. If you look at the code, it is easy enough to uncomment one line and get the data from the network GPS Data source instead and post it to the web server.
Collections
Since J2ME doesn't have collections natively, I put together a bunch of GPL'd code that implements Sets, Lists, HashMaps and some String Utilities.