nathansearles/Slides — Issue #343: Preloading slide contents using ajax call
Author: softfocus
Created: 2011-12-16 09:55:32+00:00
State: open

Hi,

I'm trying to create a content slider, and I need to load the slide divs and their content from an external html file via ajax.

I've tried the animationStart function, but for some reason the content won't load until the slideshow starts to play?

```javascript
$(function(){
$('#ContentSlider').slides({
animationStart: function() {
$('div#Slide1').load('content/slide.html #Slide1');
$('div#Slide2').load('content/slide.html #Slide2');
$('div#Slide3').load('content/slide.html #Slide3');
},
preload:true,
randomize: true,
hoverPause: true,
play: 5000,
pause: 2500
});
});