SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Save dialog box

  1. #1
    SitePoint Member
    Join Date
    Mar 2010
    0 Post(s)
    0 Thread(s)

    Save dialog box

    hello All,

    can any1 please help me in this..

    I am using , and java script...

    Presently i have a link on the web page ,which opens an image....if the user wants to save it , he has to right click the image and then save it. But,I don't want the user to right-click and choose the option "Save Picture As" or "Save Image" of the browser. Instead I want the user to click a link or button that is displayed just under the image. After clicking the link/button, the user should be able to save the image in his/her local hard disk/machine in a particular folder or just under C:\ or bringing up the file directory dialog box where the user can save in his/her own folder.

    Thanks in advance...

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    99 Post(s)
    4 Thread(s)
    You will need to use server-side scripting to change the content-type of the image file.

    For example: see How do I prompt a "Save As" dialog for an accepted mime type?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

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