Results 1 to 7 of 7

Thread: Example of syncing an ajax store to localStorage

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
      0  

    Default Example of syncing an ajax store to localStorage

    Can some please provide an example of syncing an ajax store to localStorage. I can't seem to get it to work, thanks!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    http://docs.sencha.com/touch/2-0/#!/...y.LocalStorage

    Remember we are still in the PR stages so expect a few bumps in the road.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
      0  

    Default Been there

    I've been there multiple times, I'm looking for a working example someone may have, thanks.

  4. #4
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    245
    Vote Rating
    2
      0  

    Default

    This would really be of benefit to me too.
    In particular when it comes to storing a user's settings for later use.

    Thx

  5. #5
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    This is really as simple as looping through each record in an Ajax store and adding them into a localStorage store, and vice versa. The problem is, that right now in PR2, localStorage is broken.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  6. #6
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    245
    Vote Rating
    2
      0  

    Default

    That's a shame. I'm busy developing an app using Sencha Touch (1.10) but as I'm still busy coding away I've migrated to PR2. Does anyone know the ETA on the localStorage solution for PR2. When is PR2 due for official release?

  7. #7
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    146
    Vote Rating
    10
      1  

    Default

    In this blog you will find an example:
    http://lalexgraham.wordpress.com/2012/09/12/sencha-touch-2-example-of-syncing-localstorage-store-with-remote-jsonp-proxy-store/

    It is more a "move it all" to localstorage than a record sync.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •