News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

JS error on News Fader in IE (SMF2.0RC5)

Started by sdkid, March 18, 2011, 08:04:15 PM

Previous topic - Next topic

sdkid

Using Internet Explorer, I am getting the following error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.1; .NET CLR 3.0.30729; .NET4.0C)
Timestamp: Fri, 18 Mar 2011 23:53:41 UTC

Message: '1' is null or not an object
Line: 54
Char: 3
Code: 0
URI: http://greatplainsvoices.com/Themes/default/scripts/fader.js



The news fader section shows ALL of the news items--it does not fade between each item.  This only happens with IE.  Chrome and FF work fine.  JS was updated to v6, build 24. 

thoughts on this?  Anyone else seeing this?

Arantor

Edit your theme's CSS.

It even notes the problem in there!

#smfFadeScroller
{
    text-align: center;
    padding: 0 2em;
    overflow: auto;
    margin: 1em 0;
    color: #fff; /* shouldn't be shorthand style due to a JS bug in IE! */
}


Convert it into:

#smfFadeScroller
{
    text-align: center;
    padding: 0 2em;
    overflow: auto;
    margin: 1em 0;
    color: #ffffff; /* shouldn't be shorthand style due to a JS bug in IE! */
    background-color: black;
}

sdkid

excellent!  thanks-- I thought "shorthand" meant using color names like red, gold, black, etc...  You totally nailed it.

Arantor

No, shorthand refers to the 3 character triplet, which breaks on IE when the fader tries to look up the colour and fails.

Advertisement: