Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: sdkid on March 18, 2011, 08:04:15 PM

Title: JS error on News Fader in IE (SMF2.0RC5)
Post by: sdkid on March 18, 2011, 08:04:15 PM
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?
Title: Re: JS error on News Fader in IE (SMF2.0RC5)
Post by: Arantor on March 18, 2011, 08:16:50 PM
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;
}
Title: Re: JS error on News Fader in IE (SMF2.0RC5)
Post by: sdkid on March 18, 2011, 08:22:19 PM
excellent!  thanks-- I thought "shorthand" meant using color names like red, gold, black, etc...  You totally nailed it.
Title: Re: JS error on News Fader in IE (SMF2.0RC5)
Post by: Arantor on March 18, 2011, 08:27:06 PM
No, shorthand refers to the 3 character triplet, which breaks on IE when the fader tries to look up the colour and fails.