View Full Version : DHTML Script Help

03-23-2011, 06:51 AM
Hey guys, just a bit of a question!

Go to this page > http://www.dynamicdrive.com/dynamicindex17/html5notepad.htm

I'm curious as to know WHERE it saves the file to? Can I personally select a location for script to save the text to? :confused:


03-23-2011, 11:59 PM
DOM Storage is an HTML5 specification, which specifies that the data is stored on the user's hard drive. Exactly where depends on the browser. In Mozilla for example, the documentation states:

The DOM storage data is stored in the webappsstore.sqlite file in the profile folder.

* DOM Storage can be cleared via "Tools -> Clear Recent History -> Cookies" when Time range is "Everything" (via nsICookieManager::removeAll)
o But not when another time range is specified: (bug 527667)
o Does not show up in Tools -> Options -> Privacy -> Remove individual cookies (bug 506692)
* DOM Storage is not cleared via Tools -> Options -> Advanced -> Network -> Offline data -> Clear Now.
* Doesn't show up in the "Tools -> Options -> Advanced -> Network -> Offline data" list, unless the site also uses the offline cache. If the site does appear in that list, its DOM storage data is removed along with the offline cache when clicking the Remove button.

03-24-2011, 12:09 AM
I'm not that familiar with the script, but I took a quick look and it appears to be saving using Local Storage.
It's a feature of HTML5.

It isn't creating a file. It's saving temporary data in the browser. In fact, you can't saving a file using Javascript. You could use a serverside language to generate a .txt file based on a submitted form, but that's getting significantly beyond the current functionality of this script.

EDIT: Looks like I posted at the same time as ddadmin.