ProLoser/AnythingSlider — Issue #262: Loading HTML into <div></div>
Author: pumbacoders
Created: 2012-01-30 15:05:59+00:00
State: open

Am trying to do the following:

$('div.content').anythingSlider({onBeforeInitialize: function(){
for(var i = 0; i < size; i++){
$('div.content').append("

");
$('div#project-'+i).load('project/overview.html');
}
}, buildNavigation: false, buildStartStop: false, infiniteSlides: true});

or something similar.
The essence of it all is that I'm trying to load pieces/full html from a html page, which in it self is working but introduces a strange issue.
As the snippet says: I'm looping over a size of 4 and inserting a div with an id.
When pressing the right or left navigation arrow to make it slide this is where the issue occurs. The panels aren't infinite but instead produces a white slide before loading the "next" panel upon reaching the "last" panel in the list.

How come? Is this a bug or is it me that's using jQuery 1.7.1 wrong.
Am using version v1.7.23 of AnythingSlider.