fancybox not support IE8 browser

627 views
Skip to first unread message

phuong

unread,
Apr 21, 2009, 3:56:38 AM4/21/09
to fancybox
Please fix it

Rances

unread,
Apr 21, 2009, 3:59:24 AM4/21/09
to fancybox
working just fine in ie8 here....
download latest version of ie8

On 21 apr, 09:56, phuong <quocphuongdes...@gmail.com> wrote:
> Please fix it

Jānis Skarnelis

unread,
Apr 21, 2009, 4:09:30 AM4/21/09
to fanc...@googlegroups.com
What exactly doesn`t work ?
I don`t have IE8 on my computer as I`m using IE6 for testing. If animations are weird then maybe try changing line
var isIE = ($.browser.msie && parseInt($.browser.version.substr(0,1)) < 8);
to
var isIE = $.browser.msie;

Janis

didroe

unread,
Apr 21, 2009, 7:41:26 AM4/21/09
to fancybox
Not sure about the OP but I've had the following issues with IE8:

First, I had set the X-UA-Compatible header to force IE into standards
(IE8) mode. Fancybox was having an error due to expression support
being removed. Then I noticed that it shouldn't have been running the
set/removeExpression calls anyway. It turns out that it just quietly
ignores the header for intranet sites! It was reporting the browser
version as 7 but not supporting all the features of IE7.

After fixing the standards mode problem I now have an issue where the
PNG borders turn black during the animation. Once the box has animated
into position everything looks ok. Making Fancybox call fixPNG fixes
the problem, although native PNG support should work in IE8. The
easiest fix is to add another boolean isIE8 and then run fixPNG if
(isIE || isIE8).

didroe

unread,
Apr 21, 2009, 3:53:26 PM4/21/09
to fancybox
I've done some further investigation into why I was having problems
with the IE compatibility mode. It seems that it's broken and the
version in the user agent doesn't necessarily correspond to the
effective version of the browser in terms of rendering and feature
support. I filed a bug report for jQuery (http://dev.jquery.com/ticket/
4566) but you might want to work around it in the short term with
something like:

var isIE = false;
if ($.browser.msie) {
if (document.documentMode) { // Account for IE8 compatibility view
isIE = document.documentMode < 8;
} else {
isIE = parseInt($.browser.version.substr(0,1)) < 8;
Reply all
Reply to author
Forward
0 new messages