jQuery AJAX loaded content slideshow
- by user369437
Hi
I have created a slideshow to go on a zencart site. The slidehow page is an external file that is loaded via AJAX. Please find the code snippet below.
jQuery(document).ready(function() {
//Load the slideshow page
jQuery("#slidershow").load("/xxxxxxxxxx/index.php?main_page=page&id=2 #slider");
//Targetting live content, #slider is loaded via AJAX
jQuery("#slider").live("click" ,function(){jQuery(this).s3Slider({timeOut:5000});});
});
Instead of live("click"...) I would like it to appear onload automatically.. But live() does not support "load". What other ways I could get the plugin to trigger onload? hope the question is clear.