Storing persistent data in browser

前端 未结 5 1617
[愿得一人]
[愿得一人] 2020-12-11 23:05

For my web application, I need to store form inputs spanning across multiple pages, until I finally process/manipulate them to produce some results (its mostly formatting th

5条回答
  •  [愿得一人]
    2020-12-11 23:36

    Use webstorage (you can client-side store around 5MB of text or binary data)

    Firefox demo: http://codebase.es/test/webstorage.html

    DOM Storage is supported in these web browsers:

    • Internet Explorer 8
    • Firefox 2 for sessionStorage, 3.5 for localStorage
    • Safari 4

    Just google for sessionStorage and localStorage objects.

    Also modern webkit browsers supports client-side sql.

    Edit:
    I'm not sure about what you want to do but using AJAX you can store everything in javascript variables and serverside databases or sessions are a good choice.

提交回复
热议问题