Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Header fade gives cross-slide JS Error ("Exception thrown and not caught") (http://forum.bytesforall.com/showthread.php?t=11455)

jtz Nov 30, 2010 10:45 AM

Header fade gives cross-slide JS Error ("Exception thrown and not caught")
 
Hi all,

I have a site (Wordpress 3.0.1) that uses ATA 3.5.3's rotating and fading header image feature.

When only the rotation part is used, there are no errors in FF, Chrome, or IE6/7/8. But the moment I turn on fading, IE (and IE only) gives the following error three times:

Line: 38
Error: Exception thrown and not caught

I can see the image fade to the next one, but just before it completes, the above errors happen.

I tracked the error down to the cross-slide.js abort function. Line 38 is:

throw format.apply(null, arguments);

Does anyone have an idea what's going on? Thanks in advance for the help!

jtz Dec 6, 2010 10:36 AM

UPDATE: I uploaded the newest version of cross-slide.js, and the error is more descriptive this time around. It tells me that the "container element does not have its own width and height". Where would I find the container to specify the width/height?

juggledad Dec 6, 2010 01:37 PM

I believe the container element is the div#imagecontainer

one of the issues with this code is it doesn't honor the CSS styling for the container. For example, lets say you make the header image clickable. Once the script starts, it overlays the rest of the HTML(?) like it has a z-index of 999 so the clicking no longer works. It also does not pay attention to the positioning of the image, it puts it at offset 0,0 and this can make it look like the image jumps or shows an image behind the rotating image.

I'll be interested in what you come up with, I'm not a java programmer and don't really want to learn at this point :)

jtz Dec 6, 2010 02:44 PM

Hmmm, thanks for that juggledad. I'll try playing around with the imagecontainer div and see what I can do.

Until I figure it out, I decided to just comment out the cross-slide.js abort() code that announces the error. :) Naughty, I know, but no more errors for now.

johanM Dec 15, 2010 02:19 PM

Try to add a language="javascript" to <script type="text/javascript" line see if it solved your issue.

Olekkk Jan 25, 2011 07:15 AM

I had the same problem (BTW, this is the number one from only two threads about CrossSlide and this error over the whole Internet :D).

In my case I just forgot to put the CrossSlide trigger in $(document).ready() function, so check if there's one in Your script.

Hope that helps.


All times are GMT -6. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.