Hacker Newsnew | comments | ask | jobs | submitlogin
darxius 444 days ago | link | parent

Now I just need some javascript to listen for Ctrl+S and save it as a text file in ~/Documents/scratchpads. Time to get crackin'


gruseom 444 days ago | link

How do you save stuff in files from the browser?

I've googled around about this a couple times and not found anything good, so if anyone can point to some clear documentation I'd appreciate it.

-----

mmastrac 444 days ago | link

I'm on mobile so I can write to much accompanying text, but start here:

http://www.html5rocks.com/en/tutorials/file/filesystem/

-----

gruseom 444 days ago | link

Thanks to both of you. I'll check it out.

-----

mrcoles 444 days ago | link

I don’t think that’s going to work, since the data URI is inherently local (and only works on Chrome), and you can’t use the Chrome file-system API or even localStorage when you're viewing a local file, unless chrome was opened with `--allow-file-access-from-files`

-----

RaphiePS 444 days ago | link

I found this very helpful: http://www.html5rocks.com/en/tutorials/file/filesystem/

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | DMCA | News News | Feature Requests | Bugs | Y Combinator | Apply | Library

Search: