Will not work in IE? Please help!

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

Will not work in IE? Please help!

Benek
I've used Shadowbox before and never had a problem with it but now I've run into something and it's driving me crazy--I can't figure out what the problem is.

I'm using Shadowbox.open() to show a message when the page loads. Works in FF and Safari. Does not work in IE. Please take a look at this sample page: http://www.benekdesign.com/netinsites/

Can anyone see why I'm throwing IE off?

Here is my code:

        <script type="text/javascript" src="js/shadowbox-base.js"></script>        <script type="text/javascript" src="js/shadowbox.js"></script>        <script type="text/javascript"> <!-- Shadowbox.loadSkin('netinsites', 'js/skin'); Shadowbox.loadLanguage('en', 'js/lang'); Shadowbox.loadPlayer(['html'], 'js/player'); window.onload = function(){ Shadowbox.init({ animate: false, enableKeys: false, skipSetup: true }); // open newsletter sign-up on page load Shadowbox.open({ player: 'html', title: '', content: '<div id="popup"><h1>Make Sure You&#39;re Web-Aware</h1><p>Sign up to the Netinsites&#39; Newsletter (since 1999) and keep up with what is happening on the Net.</p><p><a href="http://www.netinsites.com/newsletter.cfm">See our latest newsletter</a><br /><a href="http://www.netinsites.com/newsletter-archive.cfm">View the Newsletter Archive</a></p><form id="subscribePopup" action="/newsletter-subscribe.cfm" method="post" onsubmit="return _CF_checksubscribe(this)"><fieldset><label>Enter your email address</label><input type="text" value="" maxlength="70" class="txtfields2" size="20" /><input type="submit" value="Signup" class="button" /></fieldset></form></div>', height: 220, width: 300 }); }; --> </script>
Reply | Threaded
Open this post in threaded view
|

Re: Will not work in IE? Please help!

build
G'day,
On holidays but just quickly the only suggestion would be to try mucking around the DTD. Try loose???

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

Re: Will not work in IE? Please help!

Benek
Thanks Build.

Had a try and that did not fix it.

I always use strict and it's never caused a problem before so I don't think that's the cause of it.

Just checked IE again and I'm getting this error:

Line: 137
Char: 21
Error: Invalid Argument

I don't know how to debug that. Is it a problem with the shadowbox script itself? I've only modified it slightly to change the color and opacity of the background (which is strangely specified in the script itself instead of in the skin).

Any other ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Will not work in IE? Please help!

Benek
SOLVED.

It worked with the classic skin but not my own skin. I made one small adjustment to my skin css file and it works now.