SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Save dialog box

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

    Save dialog box

    hello All,

    can any1 please help me in this..

    I am using ASP.net , 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
    Location
    Christchurch, New Zealand
    Posts
    14,682
    Mentioned
    99 Post(s)
    Tagged
    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


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
  •