Bugs in the Fade Anything Technique?

I’m a big fan of the Fade Anything Technique when trying to update a user of state changes.

However, with the JavaScript debugger installed on IE6 I keep getting error messages from pages that don’t produce them in Firefox. The error occurs in the set_bgcolor() function because the color parameter (’c') has a value of "NaNNaNNaN".

I’ve finally tracked down the bug to the get_bgcolor() function in fat.js - unfortunately, MS’s JavaScript debugger is so unwieldy I can’t figure out how to step through the code and see which DOM elements are returning a bad bgcolor.

It doesn’t seem anybody else out there has run into this yet…

Update: it seems the problem occurs when the “fade” element does not have a background-color AND its parent element has a background-color set to “white” (instead of “#ffffff”).

Chaning the parent’s background-color to a hex value causes no fade to be done (but no error message to appear). Adding an explicit background-color in the style of the element to fade allows it to work correctly.

Leave a Reply

Login Method

OpenID

Anonymous