dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: force Save as dialog

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Angry force Save as dialog

    I'm trying to set up a downloads page for various resources our customers my need and I want to have it simply request a save as dialog as opposed to navigating away from the page or requiring them to right click and save.

    I've looked at numerous examples using ADO but would prefer something simpler, I think I want to go with the content-disposition option but I'm not quite sure how to implement it. Particularly when it comes to knowing it will actually get the right file. Some examples of the proper usage of this method would be appreciated.

    As it stands I have links to all the files and would like to have it prompt based on the button clicked. So that a quote/order form button prompts to save such.

  2. #2
    Join Date
    Dec 2007
    Location
    Dayton, OH
    Posts
    390
    Quote Originally Posted by A_Cleghorn View Post
    I'm trying to set up a downloads page for various resources our customers my need and I want to have it simply request a save as dialog as opposed to navigating away from the page or requiring them to right click and save.

    I've looked at numerous examples using ADO but would prefer something simpler, I think I want to go with the content-disposition option but I'm not quite sure how to implement it. Particularly when it comes to knowing it will actually get the right file. Some examples of the proper usage of this method would be appreciated.

    As it stands I have links to all the files and would like to have it prompt based on the button clicked. So that a quote/order form button prompts to save such.
    Use a javascript to open up a new window that links to the file. That will pop open a save box for ya.

  3. #3
    Join Date
    Sep 2009
    Posts
    2
    I'll try that and see how it works, but for prosperity's sake let say i did want to do it in asp, is there a way or do I have to use a the ADO connection?

  4. #4
    Join Date
    Dec 2007
    Location
    Dayton, OH
    Posts
    390
    I don't have a PC to try it on, but you might be able to do it. I would try something simple first. Just link to a page that tries to load a PDF file, but make the response type an octet stream.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles