html - update android application using jquery -


i building android application using jquery mobile , phonegap. update data every 2 months. procedure doing updates?

my page code:

<div data-role="page" id="page1413" data-theme="b">     <div data-role="header">         <h1>admission status</h1>     </div>     <div data-role="content">         <div data-role="collapsible-set">             <div data-role="collapsible" data-collapsed="true" data-theme="a">                 <h3>bio-medical engineering</h3>                 <p>                     <table align="center" width="50%" cellpadding="1" cellspacing="1" border="1">                         <tr>                             <td>intake</td>                             <td>admitted</td>                             <td>vacant</td>                         </tr>                         <tr>                             <td>30</td>                             <td>30</td>                             <td>-</td>                         </tr>                     </table>                 </p>             </div>         </div>     </div> </div> 

you need store current date in database on server or local storage (html5 localstorage?) every time app starts up, check current date against stored date , if enough time has passed, perform update.

to update data in web app need use ajax. try jquery's $.ajax can grab data external source. documentation here.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -