javascript - phonegap update file from external server -


hi have working phonegap application number of files (both .csv , .jpg) check updates on web server (say example.com/app) when pages loaded. if there new files overwrite files on phone app these updated files

for example:
when click to:

page2.html, check updates on 2.csv , 2.jpg

thanks in advice

tim

you should client side html5 storage.

i'm using html5 sqllite database store json objects relating each page within app. have master configuration file in essence sitemap each app page, , timestamp, when check against webserver configuration file copy run comparison see if files out of date/even new , if download , store within client database.

also take at

https://github.com/brianleroux/lawnchair

http://sixrevisions.com/web-development/html5-iphone-app/

hope helps

regards andrew


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -