Opening PDF file in IE, how do I code it?

Winchester

Diamond Member
Jan 21, 2003
4,965
0
76
In Firefox, all I do is click the link and it opens, under IE, when I click the link it just opens a blank window and does nothing. How can I fix this. I do no want to have people to have to right click and save as, I just want them to be able to click the link and wallah, like Firefox.

Any suggestions


I am using Windows XP with SP2 other computers with the same are having the problem as well.
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Your the webmaster in this situation? Is the MIME type being set properly in the headers?
Bill
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Found this note at MS

If you "enable content expiration" on the HTTP Headers, then add the following MIME type:

Associated Extension: .pdf

Content Type (MIME): application/pdf

Bill
 

Winchester

Diamond Member
Jan 21, 2003
4,965
0
76
Any idea on how to code that, where to put it? I am googling but not getting any direct answers.

I added it to my Direct Admin MIME Types.

I put application/pdf as my type and PDF as the extension. Doesnt seem to be working, unless it takes it awhile to update.
 

atiyeh

Senior member
Dec 13, 2004
496
0
0
what kind of webserver are you running? If it's IIS, simply restarting it should do the trick if it doesnt take effect immediately.