Solved

firefox not opening some pdf documents in the browser

Posted on 2013-05-22
1
419 Views
Last Modified: 2013-06-20
I want to open any pdf hyperlinkw on my web page in a new window. I have added the following jquery function to achieve this. It works fine on links like static.mozilla.com/moco/en-US/pdf/mozilla_privacypolicy.pdf  & they will open in the browsers window but other pdf hyperlinks when clicked open File save dialog and I need to save the document and then they open in Acrobat reader. I m using Firefox 21.0. Any ideas how can i open the documents in the browsers window

jQuery(function($) {
$('a[href$=".pdf"]').attr('target', '_blank');
}); 

Open in new window

0
Comment
Question by:mmalik15
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39186801
Show us a link that doesn't work.  The most common reason would be that the server is not setting the proper MIME type for the file.  The PDF viewer in Firefox is not as good as Adobe Reader and some documents need to be opened in Adobe Reader to act right.  Last time I checked, the Firefox viewer did not let you fill out PDF forms.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to dynamically set the form action using jQuery.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question