Downloading a pdf file from javascript() window does not work

PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no extension or has a different one (not .pdf).
Later I realized that I can manually rename the downloaded file to insert .pdf extension and open it in reader.
How can I solve this? I don't have this problem when using IE or Chrome.
Thanks

Could you try a new profile?
Create a new profile as a test to check if your current profile is causing the problems.
See "Creating a profile":
https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
If it still happens with a new and clean profile then the most likely cause is that you have security software that is blocking this JavaScript.

Similar Messages

  • How to download a .pdf file from a JavaMail application?

    hi to all,
    iam unable to download a .pdf file from a mailserver using
    my javamail application.i have downloaded all kind of files except .pdf.
    my code snipnet:
    public static void dumpPart(Part p) throws Exception {
    //     if (p instanceof Message)          dumpEnvelope((Message)p);
              System.out.println("CONTENT-TYPE: " + p.getContentType());
              Object o = p.getContent();
              if (o instanceof String) {
                   System.out.println("This is a String");
                   System.out.println((String)o);
                   } else if (o instanceof Multipart) {
                        System.out.println("This is a Multipart");
                        Multipart mp = (Multipart)o;
                        int count = mp.getCount();
    System.out.println("****************************************");
    System.out.println("count" + count);
    System.out.println("****************************************");
                        for (int i = 0; i < count; i++){
                             System.out.println("CONTENT-TYPE: " + p.getContentType());
                             dumpPart(mp.getBodyPart(i));
                        } else if (o instanceof InputStream) {
                             System.out.println("This is just an input stream");
                             InputStream is = (InputStream)o;
                             String filename=System.currentTimeMillis()+".exe     ";
                             FileOutputStream fos=new FileOutputStream(filename);
                             int c;
                             while ((c = is.read()) != -1)
                                  //System.out.write(c);
                                  fos.write((char)c);
    }//dumpPart
    what's wrong with this code?
    Nagaraju.G

    fos.write((char)c);Converting the byte to a char is unnecessary and probably harmful. Just do this: fos.write(c);

  • How to download a pdf file from the server from an strut application?

    Hi,
    I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.

    Read up on the Struts download action [1].
    And next time, please post in the relevant forum, one of the web-tier ones [2].
    [1] http://wiki.apache.org/struts/StrutsFileDownload
    [2] http://forum.java.sun.com/category.jspa?categoryID=20
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • HT3678 If I download a .mov file from gmail, I am not able to open the file. I reinstalled QuickTime 7.6.6, still unable to open the file. If I download the same file from another mail server I have no trouble. What is gmail doing to my file?

    If I download a .mov file from gmail, I am not able to open the file. I reinstalled QuickTime 7.6.6, still unable to open the file. If I download the same file from another mail server I have no trouble. What is gmail doing to my file?

    Also i have reinstalled the reader9 two  times and tried with reader8 also but in both the cases same problem.
    it would be gr8 help if someone can help.

  • How to copy a pdf file from a windows PC to an iPad?

    how to copy a pdf file from a windows PC to an iPad?

    You can use iTunes to sync the file to the iPad using File Sharing.
    About File Sharing
    http://support.apple.com/kb/ht4094

  • How do i download a pdf file from an e-mail? save to computer did not work.

    How do i download a pdf file from an email? Save to computer did not work.

    What is your operating system?  What is your email client?  What exactly means "did not work"?
    Most email clients I know have a 'Save Attachments' functionality; did you try that?

  • I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    Hi,
    I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    The trial is always extended. The serial number you enter determines whether it runs as standard or extended.
    I'm getting through fine with that link, so it must be a browser issue or some such thing. Try another browser.

  • Popups: Navigation from view to window does not work

    Hi,
    I open a second window as popup. This window has 2 views embedded, displaying view1 first. On some actions I would like to navigate to view2.
    Defining an outbound plug on view1 and an inbound plug on view2, connecting them and firing the outbound withith the onaction works absolutely fine.
    However, for some reasons I would like to avoid a direct navigation, but would like to navigate from view1 to the popupo window and from there to view2 (or maybe another view, ofcourse also embedded in the same popup window). Unfortunately I fail on this scenario - I can fire the view-to-window plug, but the destination on the window side (handle in method) is never reached.
    Since the same concept works fine on non-popup windows I wonder whether a navigation from view to embedded window does not work for popups?
    Any idea?

    Hi Yashpal,
    no, just one window.
    The first link is view1 -> window, the second window -> view2.
    I.e., I fire in the view the outbound plug, which is connected with its window.
    In the window I fire an outbound plug, which is connected to view2.
    In theory this should work - for non-popup windows I do not have any problem at all, however, for popup windows the navigation from view1 to the window is not processed.
    In the meantime I played a little bit further: Instead of firing a navigation from view1, I now fire an event defined in the component contoller, on which an event method is registered within the window. Doing so, I reach the window, which I didn't reach via the navigation link. Once in the window, firing to view2 works just fine ...
    Hope the issue is a bit clearer now. Also I found a solution, I am surprised that the simpler way via navigation does not work.

  • ITunes drag to import new songs in library or to create playlists from folders on windows does not work!

    iTunes drag to import new songs in library or to create playlists from folders on windows does not work!
    WHY? I have to solve, how can I do? Thank you

    up

  • ? Some pdf files from the web will not open, some will.

    Some pdf files from the web will not open, some will. I am using Adobe Reader 10.0.1 on an 8-year old puter I have just upgraded to 2G of RAM. It worked fine before with 256K. When a file won't open I get error message "There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again (103:103). Have uninstalled and reinstalled all Adobe products several times. Ideas?

    Good luck with that. Adobe10.0.1 is a bug infested BAD program. Look at the posts relating to this issue for the last 3 days. Many, many problems. Support is no help.

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
    C:\Windows\system32>defrag /c
    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.
    It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
    Defragment disks, works fine.
    I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
    This happens only with some of the windows 7 VM's that we have.
    There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?

    Hi,
    Could you defrag as below method:
    1. Open Disk Defragmenter by clicking the Start button. In the search box, type
    Disk Defragmenter, and then, in the list of results, click
    Disk Defragmenter.
    2.Under Current status, select the disk you want to defragment.
    3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
    Last Run column. If the number is above 10%, you should defragment the disk.
    4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, please read this article:
    Ways to improve your computer's performance
    http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
    Meanwhile, read this article:
    Defrag from the Command-Line for More Complete
    Control
    http://technet.microsoft.com/en-us/magazine/ff458356.aspx
    Karen Hu
    TechNet Community Support

  • Why while in Bridge Load Files into photoshop Layers does not work?

    In Bridge, Tools>Photoshop>Load Files into Photoshop Layers does not work.  I have two images selected and when I execute that comman in Bridge nothing happens.  I exited and restarted both PS and Bridge and still nothing.  I am working in Windows 7 and Photoshop cs6.

    No I tried File/scripts/load file into stack and still did not work.
    There was an update to bridge and now it works.  Thanks so much.

  • The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    I found this plugin which solved pretty much all of my mail font rendering problems.  It is designed for Lion, so don't know whether it will work but thought I would offer it up.
    http://noware-it.zxq.net/

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • The download of icloud control  panel v2.0 does not work. I have no box to check for calendar and contaks. Whats wrong?

    The download of icloud control panel v2.0 does not work. I habe no box to check for calendar and contacts. Whats wrong?
    Thanks Chris

    Hi, I came across the same problem and was not able to open any iCloud folders on Outlook, and iCloud was continusly asking to repair the iCloud Control Panel. Got the issue fixed by following the steps on the link http://somanytips.com/fix-icloud-error-repair-the-icloud-control-panel-to-use-ic loud-with-outlook/

Maybe you are looking for

  • Performance issue on a select statement

    Hi all @ SAPforums and thanks for your attention, the task is quite simple: given a Purchase Requisition number and position (banfn, bnfpo) I have to check if a contract with the same PR as source exists in the EKPO table. In order to check for it, I

  • How can I add a review button on my podcast

    How can I add a review button on my podcast, so I can see it on my iphone or itouch?

  • Sound stopped working with kernel26-2.6.22.1-4

    Before I updated to kernel26-2.6.22.1-4, everything was working fine. Digital output, ac3/dts with 5.1 surround and stereo output. Now, interestingly digital ac3/dts through spdif works, stereo does not. I have followed the ALSA guide and all modules

  • Removing Supervisor Password via WMI?

    Hello guys, I'm trying to remove our supervisor password from our computers using the WMI-interface (described here: http://support.lenovo.com/en_US/detail.page?LegacyDocID=MIGR-68488). It works fine when trying to change the password using the provi

  • Premiere pro cc crash when i play a video file

    When I am going to play a video in premiere pro cc the program simply crash. This only happen when i try to play a video, a audio file or a picture is working but not video. What should I d