Hi all,

Relative jQuery newbie here with an issue on the cycle plugin.

I have an AJAX enabled tab feature. The first tab, "Featured", uses the cycle plugin to rotate through 3 DIVs. Works great.

Problem is, if you click on another tab besides "Featured", then click back on "Featured", the DIVs don't rotate. I'm getting the "cycle terminating too few slides" error.

Page load it works though.

Here's my code. I set up a click event on "Featured" to get the DIVs rotating again, but no luck. The AJAX file for "Featured" does have multiple DIVs to load.

Appreciate any ideas!
Code:
$(document).ready(

	function() {

		$('#case_content').cycle(
			{ 
	    	speed:1000,
			timeout:3000,
    		pager:  '#nav'
			}
		);
		
		if($) {
			alert("Loaded from document.ready");
		}	

		$('#featured').click(
		
			function() {
			
				//To stop:
				jQuery('#case_content').cycle('stop');

				//To restart (same as first start):
				jQuery('#case_content').cycle(
					{ 
					speed:1000,
					timeout:3000,
					delay:-5000
					}
				);
			}
		);
	}
);