locked
Save the entire state of the app RRS feed

  • Question

  • I am using JavaScript , CSS and HTML technologies to author a Win8 App. The code will keep adding dynamic HTML as and when users perform a certain actions. Is there a way to save the entire HTML data when the user exits?

    I know how to save and retrieve data if the id is known beforehand. In my case since the contents of the page are dynamic, it's way easier just to save the entire state as it is.

    Thanks!

    Thursday, January 24, 2013 7:52 PM

Answers

All replies

  • you mean you need to maintain the history of a user rite?

    1.whether he is existing user or not

    2.if yes how many html files he have and what are the paths or names of those file etc?

    if yes then you can choose indexedDB,where you can create various tables in that DB,then plan your data flow across tables

    Friday, January 25, 2013 9:40 AM
  • Let me rephrase the scenario:


    App has many links which can be saved as a "favorite". When this event occurs, a new
    link is added to an existing list and this link is dynamically assigned an id and a value.

    So suppose there is a unorder linked list as follows:
    <ul>
    <li id="link1"><a href="www.Bing.com">Bing</a></li>
    </ul>

    then after user "favorites" two links

    <ul>
    <li id="link1"><a href="www.Bing.com">Bing</a></li>
    <li id="link2"><a href="www.favoritelink1.com">Favorite Link 1</a></li>
    <li id="link3"><a href="www.favoritelink2.com">Favorite Link 2</a></li>
    </ul>


    When the app closes and is reopened, I want the favorite links to persist. 




    Friday, January 25, 2013 3:26 PM
  • I was able to make progress with the information contained in this link - http://msdn.microsoft.com/en-us/library/windows/apps/hh986966.aspx, though I hit another roadblock for which I have started a new thread - http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/bd256ac4-302d-4e70-9f2d-639e88192dfa
    • Marked as answer by Jay_Hawk Friday, January 25, 2013 10:24 PM
    Friday, January 25, 2013 10:24 PM