title: Managing service urls in mobile (phonegap) apps
body: <p>I wrote a phonegap / jQuery mobile app which runs fun in the iphone emulator. My app is getting data from a remote host. At the moment I have ajax requests to "localhost:8080" across my code.</p>
  
  <p>I know, this is not good. I would like to change it.</p>
  
  <p>What is the best practice for URLs in mobile webapps?</p>
  
  <p>I mean, can I differ somehow on "build time" which url to use? Should i do something like "if emu the use localhost"?</p>
  
  <p>Thanks in advance,
  Christian</p>