SWF not loading in IE7 or 8

4 messages Options
Embed this post
Permalink
combustion

SWF not loading in IE7 or 8

Reply Threaded More More options
Print post
Permalink
The shadowbox loads up but the content (swf) area is empty.

Works fine in all other browsers.

http://www.tams-media.com/test/shadowbox/index.htm

any help would be much appreciated.
combustion

Re: SWF not loading in IE7 or 8

Reply Threaded More More options
Print post
Permalink
Now it really got weird, if I click the link from this forum post it works... but if i copy and paste the link into my browser (IE8) is still doesnt load the swf.
peppix

Re: SWF not loading in IE7 or 8

Reply Threaded More More options
Print post
Permalink
Hi,
I had a similar problem with Shadowbox 3.0b or rc1, in my case it was working perfectly with any browser but not ie7 (it works with ie8).
I had to init the Shadowbox libraries one the dom was loaded completely.
Debugging the SB code showed that the DOM object was not initialized correctly so I had to do something like this:

function initChatBody() {
        var options = {
            language: "en",
            players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
        };
        Shadowbox.init(options);
}
YAHOO.util.Event.onDOMReady(initChatBody);

I am using YUI as you can see.
You could also use window.onload

Hope it helps
Giuseppe
combustion

Re: SWF not loading in IE7 or 8

Reply Threaded More More options
Print post
Permalink
thanks, I tried what you siad but now it's just loading the swf straight into the browser.