XmlHttpRequest from an 'offline' shell app can communicate to a
server. Otherwise, include the phonegap.js file on your remote website
and if the phonegaps api's are available then you can call w/ native
js on the serverside and use (again) XmlHttpRequest.