I have implemented a jQuery carousel on a wordpress website with AJAX page requests. Now the carousel is working on this page:
But not when opening the page with an AJAX request.
How can I fix this problem?
I'm getting some javascript errors
jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...
Which is strange because with the normal link it is working as it should..
This is the code to call the carousel
<script type="text/javascript">
jQuery('ul#about-jcarousel').jcarousel({scroll: 1,visible: 3,wrap: 'circular'});
jQuery('ul#about-jcarousel li').width(234);
</script>
edit: Problem is kinda solved by adding the script to call the carousel into the js file which initiates the ajax page load. It is working now, but somehow the images are shown on top of each other and by resizing the browser the are displayed perfectly....strange...