OpenHouse Concept  //  OHC is a consulting firm specializing in web application development.

Oct 22 / 2:19pm

sIFR transparent wmode in IE6

If you are using sIFR and have the requirement to have the generated flash file be transparent you will end up using the "wmode: 'transparent'" option. We ran into a tricky js bug in IE 6 that only happens when the browser window is resized. The only feedback you will receive is the dreaded IE 6 error box.

Ie6_js_error

The solution to this heinous bug is very simple, but not easily found.

In the sIFR config file, add the following line just above sIFR.activate(..);

sIFR.repaintOnResize = false;

According to the sIFR documentation repaintOnResize "Determines whether sIFR updates the Flash movie when the window is resized. Necessary for page zoom as well."

Why this flag is defaulted to true and why sIFR needs to update the flash movie on browser resize is still a mystery . I have not noticed a change in behavior by disabling this flag (other than making the bug disappear).

So in conclusion if you need to support IE 6 and sIFR transparency then this should save you a headache or two.

Filed under  //  ie6   sIFR  

Comments (0)