I am working on a site where we get information from an XML file. It works fine, but now I need to create a content slider. For this, I will use jCarousel, which claims to be able to do this with dynamically loaded content by calling the callback function.
I cannot, however, do the initial ajax load when I call the function successfully. What am I doing wrong?
$(document).ready(function() { $.ajax({ type: "GET", //Url to the XML-file url: "data_flash_0303.xml", dataType: "xml", success: hulabula() }); function hulabula(xml) { $(xml).find('top').each(function() { var headline = $(this).find('headline1').text(); var headlineTag = $(this).find('headline2').text(); $(".wunMobile h2 strong").text(headline + " "); $(".wunMobile h2 span").text(headlineTag); }); ..............
Am I doing something wrong ??? Or is it a completely different place that I need to see ?:-)
jquery xml ajax jcarousel
curly_brackets
source share