jquery - Data Persistence with jqMobi -



jquery - Data Persistence with jqMobi -

well, i've sorted through google search , i've sorted through stack overflow , of yet don't have thought of how this.

i'd build programme iphone using jqmobi + css + html 5. i've worked jquery bunch, spent time jquery mobile , have done tons of css , html, (though little work html5). need able save lists user generates when open program.

i'm having no problem dynamically generating , linking pages... when open programme sec time of pages (ie items) i've generated disappear. understand because weren't written in part of base of operations program. occurs me way around save lists file or db , load them when programme starts up.

i've seen documentation using titanium studio, (it supports sql lite) generation of pages , general ui suck. additionally getting emulator run code has given me lot of trouble. @ to the lowest degree can using appmobi's app test gives decent emulator work before you've ported code compiled state.

in case, know how set info persistence (between programme restarts) jqmobi + css + html 5 either db or file generation?

edit x2: since i've got on hook @ian can take code , tell me why $.ui.addcontentdiv() doesn't appear updating content? $(#content).append(string); doesn't appear want cooperate either. there function need phone call create refresh? stripped downwards bit still having issues. oddly plenty append list works fine, when seek add together div layer doesn't exist...

code follows:

function genpage( id, list, parent ) { var content = '<div id="' + id + '" class="panel">' + id + '</div>'; var threadlink='<li><a href="#' + id +'">' + id + '</a></li>'; $("#" + list).append(threadlink); $("#content").append(content); //$.ui.addcontentdiv(id, content, id); }

i'm lead dev on jqmobi, i'd happy help questions.

i'm working on mini todo-list demo 1.0 release. store info stringified json object in window.localstorage

but if appmobi app, have appmobi.cache.cookies similar. difference appmobi.cache allows store more data.

feel free check out http://forums.appmobi.com more help.

jquery mobile data-persistence jqmobi datapersistance

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -