1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Vote Rating
    0
    Abhi_aec is on a distinguished road

      0  

    Default Making use of Offline storage

    Making use of Offline storage


    Hi,
    We are developing a develop web applications that provides the feature of offline storage i.e functions in situations where network is unavailable...
    Is it possible to edit the data displayed, save it in the local storage when the network is unavailable and later sync the changes with the real database when the connectivity is regained.

    Any help appreciated...

  2. #2
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,374
    Vote Rating
    37
    arthurakay is a jewel in the rough arthurakay is a jewel in the rough arthurakay is a jewel in the rough arthurakay is a jewel in the rough

      0  

    Default


    Quote Originally Posted by Abhi_aec View Post
    Is it possible to edit the data displayed, save it in the local storage when the network is unavailable and later sync the changes with the real database when the connectivity is regained?
    Yes. I believe this has been asked a number of times here on the forums... just do a search and I think you should easily find your answer!
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Vote Rating
    0
    Abhi_aec is on a distinguished road

      0  

    Default


    I could not find any specific answer about the way to sync the changes done in the offline mode with the real database..
    If you could provide any specific links for that??

  4. #4
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    You can use the browser's local storage to store data for offlinestorage.
    but you have to ensure all of the javascript files have loaded (ext framework files) when you use local storage,
    for this load all scripts & data into local Store.

    But there should be no HTML or JavaScript generation on server side it is so because browser needs a connection to a web server to get HTML and JavaScript sources to run application. but in offline case, it is hard to find JS files...so use local storage not the server for it.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 2

Tags for this Thread