Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Having trouble with AnythingSlider, could anyone help ? Reply To: Having trouble with AnythingSlider, could anyone help ?

#180842
hira0000
Participant

Okay, so what its supposed to do is there there is a div with id=”videos” in the html where a slideshow (of a list of videos) should appear. I get this list of videos from a random Vimeo’s channel using Vimeo’s API, which works fine (as in listing all the videos) if I use the ajax retrieval method like below where I am creating a list of videos using the data obtained :

`
$.ajax({
url:’http://vimeo.com/api/v2/viborganimation/videos.json’,
type:’GET’,
}).done(function(response){
var list = “<ul>”;
$.each(response, function(key, value) {
list = list + “<li><a href='” + value.url + “‘>” + value.title + “</a> </li>”;
});
list = list + “</ul>”;
$(‘#videos’).append(list);
});

});
`

But the moment I change the above code inside the list variable to include an iframe (the way in original example and as mentioned in the AnythingSlider’s demos) and the AnythingSlider specific function, nothing appears. I’ve taken the above anythingslider specific code from AnythingSlider’s [video.html
](https://github.com/CSS-Tricks/AnythingSlider/blob/master/video.html “video.html”) and I have included the ul id=’slider’ bit as well so I can’t figure out what could be going wrong.