title: Execute a function every 30 seconds jquery mobile?
body: <p>I have a jquery mobile phonegap application. I would like to execute a function every 30 seconds the user stays on a particular page. </p>
  
  <p>If the user stays on a particular page say page1 , i would like to execute a function every 30 seconds, </p>
  
  <p>To put it in simpler words </p>
  
  <p>If active page is page1 
  fire getmessages() every 30 seconds. </p>
  
  <p>How do i achieve this </p>