Download pop-up

Hi,
I'm creating a servlet and creating an html page within it. In the html page, i'm providing a link to a pdf file. Currently, the pdf file opens on the user's browser window, where he/she can save it. I wish to implement it in a way that when the user clicks on the link, it shows a pop-up with 3 options: Open, Save or Cancel, as shown when we download files from the internet. Can anyone help me how to do this?

You'd probably want to do something like that with a combination of HTML (the target attribute to the A tag) and Javascript. I suppose it might require (if you couldn't do it all in javascript) creating an additional servlet that would contain HTTP headers to instruct the browser to save the file rather than display it, but I'd suggest avoiding that if you can and keep the solution isolated in as few languages as possible (i.e., don't use servlets if you can do it all in javascript).
Though I guess you could do it all in HTML and servlets. Use the target attribute to cause a new window to open. That new window would hold a simple web page with three buttons (either form buttons or 3 links over graphics that look like buttons). One button would be a plain link to the PDF. One button would just hold javascript to close the window (cancel) although actually I'd suggest just skipping this button and let the user just close the window themselves if they want to cancel. Then one button would link to the servlet that would cause a download rather than a display.
But you know what's better still? Just provide a single link to the PDF from your original page. If the user wants to download the file, they probably know how by right-clicking the link. You can add instructions about how to do that if you think they really don't know. My general rule of thumb: the more complicated the navigation, the worse the interface. Let the browser's existing functionality do its job.

Similar Messages

  • TS3697 There is no camera roll download pop up after connected to iTune, to solve that I used Photo Transfer App to download the Photos, but how can I delete the photos in the camera rolls, as there are 9000 photos in the camera roll

    There is no camera roll download pop up after connected to iTune, to solve that I used Photo Transfer App to download the Photos, but how can I delete the photos in the camera rolls, as there are 9000 photos in the camera roll

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • I am using Firefox 7.When I tried to open a player the install instructions from the website says, download the widevine plugin from the automatic download pop-up,but my Firefox browser doesn't show me the automatic download pop up to download the plugin.

    The automatic download pop up for downloading the plugin was not showing in my firefox 7 browser.

    Hi and thanks to not leaving the firefox user alone.
    Cor-el your answer is right as the madperson is and I already knew all these
    answer and I said that before I don’t use any antivirus and I always turn off my firewall from the moment I installed my Windows.
    I even turn off any automatic update for any of my software and I never let any unknown plugins or any thing like that be install without informing me. And if you know some things like Offline Storage and cookies must be to much more than usual and you have to clear them and delete them and I know so much more
    And if you want to know it fixed now. But I don’t know how?
    For understanding my problem read and research about Ixplorer.exe virus it is the same problem about the speed but the different is it doesn’t show any process in task manager like Ixplorer.exe virus
    Bt I have done some things but still I don’t know that’s why it is fixed or not
    First: I searched my system and removed any files have been crated on my system from two days ago since the problem happened.
    And then I used to go about the article in this page and did like this:
    http://answers.yahoo.com/question/index?qid=20080910101846AAazxN5
    but still I don’t know any thing about the problem.
    I can do so many things to fix but I am just curios if that is a virus why it just cut the speed when I am using the browser.
    Please if any one found the reason send me your information I like to know it will improve my knowledge however my problem is solved fro now.

  • Mail 2.1 re-downloads already downloaded POP mail!

    I recently installed Mac OS 10.4.9 on a new Mac Pro tower and my older 15" G4 Powerbook. The OS comes with Apple Mail 2.1. The problem I'm having is with Mail 2.1 regarding retrieving POP mail from the Yahoo server that has already been downloaded. Since I don't routinely clear messages from the Yahoo server, repeating a download from scratch can mean over 9000 messages. This results in duplicate messages piling up in my INBOX.
    Since I download POP mail to both of my computers, I don't want to clear the Yahoo server of mail.
    How do I prevent Mail 2.1 from downloading already downloaded POP mail without clearing the server?
    Powerbook G4   Mac OS X (10.4.9)  

    The first time to download the messages was 2 weeks ago when I reformatted my G4 Powerbook with the new Mac OS 10.4.9. I then set up the Apple Mail 2.1 to retrieve messages from the Yahoo server. It downloaded all the messages just fine.
    Then about 1 week later, when routinely checking for new mail, it started downloaded from the Yahoo server just as it had the first time (thereby creating dulicate copies of every mail message).
    This has forced me to clear the Yahoo server, which I really didn't want to do.
    This problem is not severe, I understand. But the older version of Mail never had this problem over 2+ years of use.

  • How do I customizing the download pop up window file name?

    I have a site that streams a PDF. The file name is not included in the URL. When I set my options to Save As for Adobe I am presented with the Download pop up box, but there is no extension in the box so when I double click the item it asks what file to open it with. So my question is, is it possible to be able to customize the name of the file being saved rather then letting the browser determine the name based on the URL?

    A good solution, but I went one better -  I got rid of the HP Printer and bough an Epson.
    The problem no longer exists.

  • What's with the FLP player download pop up?

    After a recent upgrade down load from Firefox I keep getting a FLP player download pop up on every screen I go to. It is very annoying and I would like to know how to get rid of it.

    Check for malware and disable all addons by troubleshooting in safe mode.
    CHECK FOR MALWARE WITH ALL PROGRAMS linked below, they scan for different malware, make sure you update all definitions (malwarebytes) and run full scans, not quick scans.
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    SAFE MODE
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.

  • I can't download the Adobe Premiere Elements 13. Akamai Download pop up only the download window but downloading do not start. Alternate download Method will start but downloading will stopped always after 655 Megabytes. I have tried with different browse

    I can't download the Adobe Premiere Elements 13. Akamai Download pop up only the download window but downloading do not start. Alternate download Method will start but downloading will stopped always after 655 Megabytes. I have tried with different browsers, fire wall and virus protection off and also to download the trial of Adobe Premiere Elements 13 but result is every time same.

    if you follow all 7 steps you can directly download a trial here:  http://prodesigntools.com/photoshop-elements-13-direct-download-links-premiere.html
    and activate with your serial number.
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • Switching from POP to IMAP mail without losing downloaded POP mail (??)

    I want to switch from POP mail to IMAP on two different business email accounts (both support IMAP) and a Gmail account, so I'll have all my desktop mail folders on my iPhone (not just the inbox stuff).
    I'm concerned about losing my downloaded POP mail in the process.
    Some time ago, I switched briefly to IMAP on one of my biz email accounts (as part of a web collaboration app), and lost lots of mail in the process.
    If someone could summarize the steps to do this I'd be quite appreciative!
    Paul / Los Angeles, Calif.

    Hi,
    Last month I have switched to IMAP from POP for several of my email accounts. I don't think it is possible to switch to IMAP from POP without deleting the account. I didn't find anything in the preferences. I usually don't erase emails in the server, so I didn't have any problem getting all my mails back.
    In case you have erased emails on the server but not in your computer, it is a good idea to backup any of your mailboxes (Using "Archive Mailbox..." in "Mailbox" menu) that you feel important.

  • Very frustrated.  downloaded reader but when I try to download pop up box says I have to accept end user license agreement but there is no place to accept it at.  I need to download pdf asap for my business.  Please help.

    very frustrated.  downloaded reader but when I try to download pop up box says I have to accept end user license agreement but there is no place to accept it at.  I need to download pdf asap for my business.  Please help.

    Hi Pat.  I've done that, it opens up the install window again.  If I click on install it says it's already installed.  Nothing comes up that allows me to accept the end user agreement.  I just retried and the same thing happens.
    I appreciate your help. 
    Shelley

  • Marking mail as downloaded - POP

    I have 2 different computers where I'm trying to sync the mail, and 2 different work email servers I need to check (but don't have to keep separate). What I currently do is check one with IMAP and the other with POP. The downloaded POP messages are moved to the IMAP inbox via a filter. That way all the mail is in one inbox for me to deal with. All works well ... except when I throw in the second computer issue. If I run the same setup on the second computer then the new pop mail is downloaded as I wish, but the older ones already downloaded by the other computer are downloaded again and I get duplicates.
    When I was using Eudora, there was no problem. Eudora on different computers knew when a message had already been downloaded and did not download again. But Mail doesn't seem to know this and just downloads afresh from each computer.
    Can this be set to work the way I want? (I know I could delete everything from the POP server when I first download, but I'd rather not if I don't have to). Thanks.

    You don't, that's just the way it works. Mail is designed so that you don't have to double-click to open a message... just click it and read. However, you could always close the message view pane, by clicking the dividing line between it and the message list and dragging it all the way to the right edge of the window. You'll lose the ability to "preview" messages, but otherwise it should then behave the way you want.

  • How can I turn off the Download pop up Window from displaying when downloading a file?

    How can I turn off the Download pop up Window from displaying when downloading a file?

    To not display the built-in Firefox downloads window, Tools > Options > General tab, un-check "Show the <u>D</u>ownloads window when downloading a file". See: http://support.mozilla.com/en-US/kb/Options+window+-+General+panel
    If you have some other download manager installed, you will need to see the documentation for the download manager.
    <br />
    You have installed plugins with known security issues that should be updated. To see the plugins submitted as part of your question post, click "More system details..." to the right of you original question.
    *Shockwave Flash 10.1 r53
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    #* After the installation, start Firefox and check your version again.

  • How do I Reset my settings for the download pop-up that ask options such as "Save" or "Open" file. I put the opition "Do not ask again."

    Hi, when you download a file, something pops up saying whether you want to "Save File" or "Open File." By accident, I clicked the option that says "Do this always" so the download option pop - up does not show anymore, How can I re-set this option?

    install the drivers after restarting your computer.
    using manual ip config or dhcp enabled?
    also,if readycomm is installed, remove it

  • File Download Pop up when viewing flash site

    I created a website with flash and everytime I look at it on
    my computer is views ok. When I look at it on another computer it
    goes to the website but when I try to click on the lnk to go to the
    next page, I get a pop up message thats prompts me to open or
    download. Wehn I click to open it say website not found...
    Someone please help. This is what it says:
    File Download_Security Warning
    Name: gallery
    Type: Shockwave object, 3.62MB
    From:www.photographybykimledoux.com
    Here is the website..
    www.photographybykimledoux.com

    As you probably guess I dont use IE.
    When I searched for it on my computer, it did not come up, so I went to the MS download center and downloaded the Internet explorer for Windows 7 x64. Ran the installer but before it could finish, it gave my this error:
    The link set me to this  site,  my responces the things on the site are as follows:
    I am running Win7 with Sp1,
    I have run Windows Update to the latest updates,
    I meet the specifications for IE11
    I am not running an incompattable video card
    All updates are complete
    I am running a x64 computer and have the x64 installer
    I do not have any previous versions of IE on the computer
    It looks as though the computer did not come with IE or it has been uninstalled at some point by a user. The installer is not giving any clues to what made it stop , so I am afraid that I can give you no more inforamtion about that.
    The only other thing is the point about the .dll file problems. I think that there may be a serious problem with the computer regarding the .dll files as many of them seem to be broken/ corrupt... I can see no solution to that apart from maybe copy-pasting the broken ones over from my other computer that is working, might that work?
    Thanks!

  • My Apple ID password will not work for downloads + pop-up issues

    I have an Apple ID and password, yet it will not work to log into ICloud or for updates on my Mac. My computer is only 1.5 years old. Also, I continually get a pop-up that I need to create a password for Safari, but if I do not hit "cancel" I will have lose all Keychain passwords.
    All of this started with the download of Mavericks, which was a BIG mistake.

    Hello vickieucb,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Apple ID: If you forget your password
    http://support.apple.com/kb/ht5787
    Best of luck,
    Mario

  • "Download" pop-up button appears

    I'm getting a weird "Download" button popping up on various websites, Facebook, etc., sometimes when I roll over things. It seems almost random...a gray button with the image of an arrow pointing down into a tray with the word 'download'. When I click it the button changes to "Please make the video is being played or it is supported". It just started popping up recently. Only seems to happen with Safari 5.0.3. It's annoying and there's nothing there to download anyway.

    Ok...
    Get GlimmerBlocker available here. Free and will stop the popups.
    http://www.apple.com/downloads/macosx/internet_utilities/glimmerblocker.html
    Compatible with Safari 5 and Snow Leopard.
    You can access Glimmer Blocker from your System Preferences pane after it's installed.

Maybe you are looking for

  • Error while trying to send mail to user  - intermediate channel settings

    Hi, I am trying to implement the intermediate_channel code program, and for that I have made changes to my configuration file as follows.:- if you search for the phrase '" ADDED", it will take you to all those places where I have made entries. ! IMTA

  • An error occurred: An error occurred while trying to view the document

    Now my partner meet a trouble about opendocument API. There are 2 servers : one is partner's web server ,which partner's application run in; other is BO server. The above servers are running on different servers. There is a web page A , which is runn

  • Audigy 2 - EAX-Console crashes everyti

    Hi, I own the Audigy 2 ZS and have some trouble with the EAX-Console. When I want to change some settings there (CMSS f.e.) the software just hangs up. Like 80% of the time and I am not able to restart it, until I do a reboot. I have the latest drive

  • Accessing a jar file

    Hi all Is it possible to access a txt file that is in a jar file??? That is , I've created a jar file that contains a txt file, now in my script, I need to access this txt file, is this possible? Thanks , Dave

  • Return to PP5 from another app.

    Using Premiere Pro 5 with PC. When I return from another application I get the spinning circle of death, not responding. I'm sure it is because of MXF files from P2 media linking up. My project has about 128 elements but in the MXF format you could t