Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: how i can SAVEAS a web page programmaticaly with html5/js

  1. #11
    Join Date
    Jan 2012
    Posts
    74
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    this requires Right click is anything of kind of button click that, produce a save as dialog (not right click)??? also may save some localStorage data as txt file in PC or mobi device, ...?

  2. #12
    Join Date
    Jan 2012
    Posts
    74
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    i TRIED USE
    http://www.w3.org/TR/file-writer-api/
    BUT FAILED
    also may save some localStorage data as txt file in PC or mobi device, ...?
    THIS may all localStorage processed to txt file.
    this by pressing a button. same i want for image save (press button)... not right click.

  3. #13
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,625
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    AFAIK, you can't make a "save as" button via JavaScript - I may be wrong, but I've never seen it. The filewriter API may allow that, but I don't know how well supported it is.

    The alternative, if you really don't want to right-click, might be to use js to submit the canvas data to you server, and then offer a "download" button. Seems like an over-complication to me, though.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  4. #14
    Join Date
    Jan 2012
    Posts
    74
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    download button includes save as dialog in client/browser
    ? how?

  5. #15
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    In short, there is now crossbrowser event associated with saveas. Basically, there's no easy way, and the hard ways may not work either. The best I've seen in terms of this question was the top answer here, which uses a rather complicated method. Frankly, it'd be much easier if you were just to tell us why you don't want to use right click, so that we can think of workarounds that are perfectly viable. You're welcome to try the solution in the linked thread, but there may be better workarounds than a button that forces a save as.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  6. #16
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,625
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by lse123 View Post
    download button includes save as dialog in client/browser
    ? how?
    You're back to using vague, incomplete statements/questions.

    This prevents us from helping you.

    Please use complete sentences and clearly explain your questions when posting.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  7. #17
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    586
    Thanks
    41
    Thanked 27 Times in 27 Posts

    Default

    I have never seen such unclear,or precise questions.I wish you knew how to explain what you are asking because it hurts to read these posts of people trying to help you but unable to understand just what you are asking.

    Please be crystal clear as to what you want to do.Then maybe,just maybe someone can help
    Thanks,

    Bud

Similar Threads

  1. Replies: 2
    Last Post: 12-04-2012, 07:48 PM
  2. UTF-8 with HTML5
    By techno_race in forum Coding tips & tutorials threads
    Replies: 16
    Last Post: 06-23-2012, 06:03 PM
  3. HTML5 help
    By john123a in forum HTML
    Replies: 3
    Last Post: 06-30-2011, 12:42 AM
  4. saveAs webPage via javascript ?
    By vmars316 in forum JavaScript
    Replies: 2
    Last Post: 05-18-2010, 03:41 AM
  5. execCommand(SaveAs)
    By losbluejeans in forum JavaScript
    Replies: 1
    Last Post: 04-05-2005, 06:56 AM

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
  •