title: which is better way to load page content in jQuery mobile and Phonegap?
body: <p>I am building the iOS app use jQuery mobile and Phonegap.
  I build the website and test in PC browser,so I put the backend code(use Ruby) in the html file , so when jQuery load the page (use $.mobile.changePage()) the data will fetch from server and render the template file.(all file on the server).</p>
  
  <p>But when I put codes in Phonegap, <strong>the index.html file will now on the local,is that my only way to fetch the server side data is to make a AJAX request to fetch the json and insert to the page</strong>?or any other way perform better?</p>
  
  <p>And the jquery mobile use $.mobile.changePage() to change page using a AJAX request , so if I do make the request to fetch data , the $.mobile.changePage() function here only do the transition  , because of it did not load any data for me.</p>