[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 445
  • Last Modified:

firefox not opening some pdf documents in the browser

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
mmalik15
Asked:
mmalik15
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now