I want to use data in the form sql tables but i have to use locaStorage feature of html5 is their any way to stored data in the form sql
Asked
Active
Viewed 221 times
1
-
Thank you for response i am retrieving data from xml i want to store it in localstorage next time when page reload i will fetch data from localSrorage – Devendra Shewale May 09 '12 at 07:32
-
could you give an example of data you want to store? Maybe a simple object is enough. – Fabrizio Calderan May 09 '12 at 07:37
1 Answers
1
I suggest you take a look at PersistJS for storage solutions. This answer briefly explains how the back-end of this library works.
As for data... Use JSON instead of XML. XML is too bulky to store, especially when the library falls back to cookie-based storage.
If you can't change how the server sends data (when the server guys are XML fanbois), here's an XML to JSON library which you try.