Solved

firefox not opening some pdf documents in the browser

Posted on 2013-05-22
1
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Increase your protection from Zero Day threats!

Running two Antivirus' is never a good idea.
Taking advantage of Multiple Security layers on the other hand can often save your hide.
See which top notch security software brands have been proven to happily coexist together.
Reduce your chances of becoming a statistic.

Question has a verified solution.

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

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…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

739 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