Shadowbox.setup works in Firefox/IE7 but not IE8

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Shadowbox.setup works in Firefox/IE7 but not IE8

p9939068
This post was updated on .
I have the following link:
<a id="cpanelTips" href="http://www.domain.com/index.php"><img border="0" src="link/to/image.jpg" /></a>

and the following script in the header (with mootools):
<script type="text/javascript"> window.addEvent("domready", function() { cpanelLink = $("cpanelTips"); Shadowbox.setup(cpanelLink, { viewportPadding: 0, overlayOpacity: 0, height: 280, width: 400, displayNav: false, top: 0, modal: true, handleOversize: "none", overlayColor: "#fff", player: "iframe" }); }); </script>
This works perfectly fine in Firefox and IE7 (Shadowbox opens with http://www.domain.com/index.php displayed inside), but in IE8 it throws an "Invalid argument" error (IE error console isn't really useful). I've tried removing all the options, leaving just:
Shadowbox.setup(cpanelLink, {
        player: "iframe"
});

...but it still doesn't work. Did I set it up correctly? I tried placing the URL as the content argument, such that:

Shadowbox.setup(cpanelLink, {
        player: "iframe",
        content: "http://www.domain.com/index.php"
});

..and of course that doesn't work either (not even in FF).

Any help is greatly appreciated. Thanks in advance!
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox.setup works in Firefox but not IE

p9939068
Just to add: even though I have mootools loaded, I'm actually using Shadowbox-base.
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox.setup works in Firefox but not IE8

p9939068
I just found out it works on IE7, but not IE8 (original post updated).
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox.setup works in Firefox/IE7 but not IE8

build
In reply to this post by p9939068
IE8 is beta.
Search this forum for interim fixes.

beers,
build
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox.setup works in Firefox/IE7 but not IE8

Info24h
In reply to this post by p9939068