19

I'm working on a simple TODO list app based on localStorage HTML5 feature:

http://hamen.github.com/webnotes/

I'm wondering if it's possible to import/export data in some way. How could I provide an "Export note/Import note" feature to make users being able to save their note on their HD and import them in another browser profile?

Thanks

Ivan Morgillo
  • 2,837
  • 4
  • 30
  • 46
  • 1
    I'm interested in this too. The best I've thought of so far (without server-side code) isn't very nice: dump the data a JSON or something into a textarea or div, and let the user copy/paste it. If you can program the server, of course, you can have your site just bundle up the data, post it to the server, and have the server respond with a downloadable attachment. – Pointy May 16 '10 at 21:50

1 Answers1

13

I think you can use the "HTML File API" to load from file and a "Data URI" (http://en.wikipedia.org/wiki/Data_URI_scheme) to save.

rpl
  • 171
  • 1
  • 4