Results 1 to 3 of 3

Thread: DHTML Script Help

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DHTML Script Help

    Hey guys, just a bit of a question!

    Go to this page > http://www.dynamicdrive.com/dynamici...ml5notepad.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?

    Cheers,
    Aaron

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I'm not that familiar with the script, but I took a quick look and it appears to be saving using Local Storage.
    http://www.google.com/search?q=javascript+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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •