1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    71
    Vote Rating
    0
    heringsfilet is on a distinguished road

      0  

    Default saving/loading settings in a SenchaTouch/PhoneGap -App with localStorage

    saving/loading settings in a SenchaTouch/PhoneGap -App with localStorage


    Hi there,

    How you should save/load settings in an app when you want to use the localStorage?
    Let's say we just want to save a username and a password.

    Currently I know two options:
    • using a model with store and proxy.
      This seems to be a bit too "big" as you only want to store one object. But you have the advantage to easily use this.load() in the settings FormPanel.
    • using the Phonegap or the 'plain' localStorage.
      Then you have to use JSON.stringify and JSON.parse but you store only one object and its easier to load it (after a page refresh I run into some trouble using the store and proxy).
      But you can't use this.load as you need to load a model. Maybe you need to "cast" the settingsObject from the localStorage to a model and load this one!?
    Which approach is better or is there even another, better approach?

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    104
    Vote Rating
    0
    headkit is on a distinguished road

      0  

    Default


    *subscribe*

Similar Threads

  1. LocalStorage for Application Settings, and remove
    By legege in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 2 Jun 2012, 3:16 PM
  2. SenchaTouch/Phonegap + Drupal
    By headkit in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 9 Mar 2011, 7:10 AM
  3. Replies: 2
    Last Post: 9 Feb 2011, 11:34 AM
  4. Problem in saving Form values to LocalStorage
    By ajaytaksali in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 18 Jan 2011, 12:31 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi