Loading function after RSS loads.
I'm currently working on a site where we pull in information from an RSS feed and then use a script to rotate them. The problem that I'm coming up against is if the RSS takes a while to load the script is throwing an error.
The RSS feed is being pumped out as list items so if the li isn't found that's when I receive the error. I thought a while loop maybe the answer to this but I'm unsure about how to implement it. I've attached the function below. If anyone could help that would be great.
- $(window).bind('load', function() {
$(function() {
$(".scrollingnews").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 2,
auto:5000,
speed:1000
});
});
});