IE 8 not working with shadowbox

31 messages Options
Embed this post
Permalink
1 2
Fonzie

IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In the new IE 8, shadowbox stops functioning correctly
Already anyone with a fix?


Detalhes do erro da página Web

Mensagem: Argumento inválido.
Linha: 136
Caráct: 21
Código: 0
URL: xxxxxxxxxxxxxxx/adapter/shadowbox-base.js
slevytam

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
IE8 has been in release candidate status for a long time now.  Today IE8 is final which means millions of people will be upgrading.  

Any site using Shadowbox will now be broken.  We really need a fix!!!!
Thomas

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
I agree!

I think I already found the solution to one problem, replace the following part (almost at the beginning of the script):

setStyle:function(C,B,D){if(typeof B!="object"){var A={};A[B]=D;B=A}jQuery(C).css(B)}

With this:

setStyle:function(C,B,D){if(D != "NaNpx"){if(typeof B!="object"){var A={};A[B]=D;B=A}jQuery(C).css(B)}}

jQuery throws an exception when you pass "NaNpx" as a CSS value and that's exactly what Shadowbox does.

I also encounter another error: my WMV movies within a shadowbox don't play anymore.

Thanks,
Thomas
slevytam

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
Thanks Thomas,

I'll give that a try.  I am pretty sure setStyle was throwing the error for me too.
Fonzie

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
And what if one uses the standard adapter?

Even the shadowbox homepage does not work anymore

At the moment I am trying out lightview, works on all browsers, and looks nice
prince

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by Fonzie
Work around, try:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
 
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Mosho

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by slevytam
wow prince :-) that was  good :-)))
Vince

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
Jeps, that works, for the moment, but what if the next IE release stops with the emulating?
Vince

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
If no action is taken right now, in the future we will go really wrong, I already switched to another "box"
slevytam

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
The if(D != "NaNpx"){} fix works on the setStyle function... Thanks!  I think in my case the variable was H not D but it definitely worked.

David

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
Hi all,

to fix the IE8 problem, add the following to your skin css file:

#shadowbox_title {
  border: 0px solid;
}

#shadowbox_info {
  border: 0px solid;
}

IE8 gets border-top-width and border-bottom-width as medium if it is not set.
jackrabbit

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
I am curious about any "fixes" for the IE 8 issue.  
#shadowbox_title and #shadowbox_info are already in the skin.css. Adding them a second time or merging them into the existing sections doesn't make any difference. I am confused, am I using a different shadowbox? The setStyle fix is to change the function to setStyle:function(C,B,D){if(D != "NaNpx"){if(typeof B!="object"){var A={};A[B]=D;B=A}jQuery(C).css(B)}} ...  I assume this fix is done in shadowbox-jquery.js.
My set syle function is this:    setStyle: function(el, style, value){
        if(typeof style != 'object'){
            var temp = {};
            temp[style] = value;
            style = temp;
        }
        jQuery(el).css(style);
    },
Looks similar.... but it cant help cauze I dont use jquery. So I modified shadowbox-base.js setStyle fnction to check if value != "NaNpx" and that dont work either.

The only workaround fix is  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> .
ChristianZ

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by David
I just added the CSS that David mentioned and it seemed to work.
sid

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by David
#shadowbox_title {
  border: 0px solid;
}

#shadowbox_info {
  border: 0px solid;
}


in the ie8.css works fine, thx!
Flo

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
I just wanted to say:

 !!! Thanks for that simple fix - border: 0px solid !!!

Unbelievable, but this works :-)

Regards, Flo
thesuperstereo

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
yeah, cheers mate.
just found your css-fix and can go watch football tonight.
Jim

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by sid
Thanks for the quick fix
ChristianZ

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
In reply to this post by David
Now I am getting a weird situation where it's working in IE8 but not IE7:

http://www.marinuswelman.com/SelectedPaintings/index2.html

Hopefully I get it fixed before any of you look at it, but if not, suggestions would be greatly appreciated.
David

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
Hi, Christian,

there is the doctype missing and therefor your site is running in quirks mode. Just add a doctype aboce the html tag.

Best regards
David
Lucas

Re: IE 8 not working with shadowbox

Reply Threaded More More options
Print post
Permalink
Thanks for the css code, easyer to fix, thankssssssss
1 2