1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    132
    Vote Rating
    0
    ssdesign is on a distinguished road

      0  

    Default Sencha touch localstorage

    Sencha touch localstorage


    Hi,
    Pardon my ignorance, but can someone please tell me where should I look for if I want to learn about localstorage and sencha touch integration?

    I have seen lots of posts about Json and Store but I am not sure if I can create local database using store and if that is the right way to do it.

    Thanks a lot.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    The solitaire example uses LocalStorage to store the game state, you could check that out.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Oct 2008
    Location
    Ger
    Posts
    178
    Vote Rating
    0
    tubamanu is on a distinguished road

      0  

    Default


    hi,

    i've read something about local storage in this blog

    http://www.nils-dehl.de/2010/06/how-...ache-manifest/

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Posts
    132
    Vote Rating
    0
    ssdesign is on a distinguished road

      0  

    Default


    Hi,
    Thanks for your replies.

    I have been struggling for a while to understand the complex code of Solitaire game.

    Digging the code i found:

    Code:
    this.gameStore = new Ext.data.Store({
                proxy: new Ext.data.LocalStorageProxy({
                    id: 'solitaire-games'
                }),
                model: 'Game',
                autoLoad: false,
    Does this mean that "Store" and "Model" are still key to Localstorage?

    Thanks

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Yeah, the way we interact with localstorage is through a proxy. So you still define your models, set up your store, but then synchronize with localstorage through a proxy.

Similar Threads

  1. Sencha Touch with Rhodes
    By sumisha in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 29 Apr 2012, 11:47 PM
  2. Debugging Sencha Touch
    By profunctional in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 31 Jan 2012, 1:20 AM
  3. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM

Thread Participants: 3

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