PDF Display Fix in IE7
From Joomla! Documentation
Revision as of 16:28, 22 February 2009 by Mick holton (talk | contribs) (A small modification that worked for me.)
This worked well for me and it solved the pdf function in IE8. The next issue that was created was two windows opening in Mozilla Firefox. I'm not much of a coder but this was my fix and it seemed to work...
After updating as per the "PDF Display Fix in IE7" by:
Script Name: Simple 'if' PHP Browser detection Author: Harald Hope, Website: http://TechPatterns.com/ Script Source URI: http://TechPatterns.com/downloads/php_browser_detection.php Version 2.0.2 Copyright (C) 29 June 2007
Modified 22 April 2008 by Jon Czerwinski Added IE 7 version detection
I then made this modification to step 2 only:
STEP 2
Everything is the same except the following code:
$user_browser = browser_detection('browser');
if ($user_browser == 'msie7') { $attribs['onclick'] = "window.open(this.href,'win2','".$status."'); return false;"; }
I removed this code:
$attribs['target'] = '_blank'; } else {
It all seems to be working nicely.
I'm now working on adding headers and footers to link back to my site (pdf and print)
Regards Mick Holton