jquery - How can I overwrite the local JSON file in my steroids js application with Javascript? -


i'm building steroids js app , uses data local json file in www/data folder under "myapp.json" display things thumbnail image, description etc. want overwrite information upon launch of application each time json data server using josnp. need know if it's possible me overwrite local json file each time app launches json data server. if so, how go overwriting file , work across platforms (ios, android, windows)?

if understand right, want offline mode online sync.

best thing store in localstorage javascript object

// json storage  localstorage.mylist = json.stringify( list ); // storage json var list = json.parse( localstorage.mylist ); 

the mozilla foundation have released weak framework handle different kind of online storage (asynchrounous db) :

https://github.com/mozilla/localforage  

you can on each load call refresh function data server , store in local, if app offline, directly run script local database


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -