jqueryajaxflashfirefoxwsod

White screen of death jquery load() html file with swf


I've looked high and low for an answer to this and I'm hoping someone has an answer, or at least a tip on how to avoid it.

I'm loading a static HTML file into a container via the jQuery load() method. This static HTML file has a script which loads a swf. When I load that particular file, I get the white screen of death (WSOD) and the page explodes and everyone in the room dies a horrible death.

I've had this happen also when using the jQuery wrap methods (wrap, wrapOuter, etc.) when a swf is present.

It seems manipulating the DOM with a container that has a swf object causes this. Does anyone have a solution or a way that I can prevent it happening?

Thanks!


Solution

  • The only time I get white screen of death is because there is a JavaScript crash and the SWF never gets loaded.
    Install HTTPFox for FireFox and see if the SWF is being loaded at all.
    Most common bug for this would be a missing closing

    }

    This causes the browser not render the HTML