title: PhoneGap application that communicate with a remote DB
body: <p>I build phoneGap app, its a facebook-style app, the idea of the is that users can post messages and their friends can comment on the message.
  The app based on html, js and phoneGap.
  I have a server with a mysql database.
  My question is how can i pull and push a data from the remote DB.
  I'm a begginer so I not really sure how to do this.
  I need the page to be updated in real time, even after he finished loading</p>
  
  <p>I Googled it and I realized I needed for that use Ajax, is that true?
  Can anyone give me guidance?</p>
  
  <p>Thanks :)</p>
  
  <p>Sorry about my English..</p>