Since phonegap is based on local html file it doesn’t know about base url of remote server. I wonder what is the best way to set base url for ajax requests using jquery? Could anybody provide link to sample?
Currently i think about using jquery ajax prefilter.
When I dealt with this issue, I just put that information as a data-element on the tag.
And then used that in building out the proper URL for a given request:
This worked great for my experience with Phonegap. Hopefully this helps.