jQuery AJAX loaded content slideshow
Posted
by
user369437
on Stack Overflow
See other posts from Stack Overflow
or by user369437
Published on 2011-01-01T16:46:13Z
Indexed on
2011/01/01
16:54 UTC
Read the original article
Hit count: 147
jQuery
|jquery-live
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.
© Stack Overflow or respective owner