javascript - Issue Instantiating jQuery jCarousel -
i'm having issue instantiating jcarousel new application using jquery 1.11.2. not using jquery ui.
here website
i think there problem call:
jquery('#mycarousel').jcarousel({
this carousel running without problem on previous application using jquery 1.8.2
i tested rss feed carousel uses, , looks good: blog rss feed
here exact code ran without issue previously:
var mycarousel_itemlist = new array(); function mycarousel_itemloadcallback(carousel, state) { (var = carousel.first; <= carousel.last; i++) { if (carousel.has(i)) { continue; } if (i > mycarousel_itemlist.length) { break; } carousel.add(i, mycarousel_getitemhtml(mycarousel_itemlist[i - 1])); } }; function mycarousel_getitemhtml(item) { return '<a href="' + item.url + '">' + item.title + '</a>' + ' ' + item.description.replace(/<\/?[^>]+(>|$)/g, ""); }; jquery(document).ready(function () { $.get("http://www.davincispainting.com/blog/syndication.axd", function (data) { var $xml = $(data); $xml.find("item").each(function () { var $this = $(this), item = { title: $this.find("title").text(), link: $this.find("link").text(), description: $this.find("description").text() } mycarousel_itemlist.push({ url: item.link, title: item.title, description: item.description }); }); jquery('#mycarousel').jcarousel({ vertical: true, scroll: 1, auto: 1, wrap: 'circular', size: mycarousel_itemlist.length, itemloadcallback: { onbeforeanimation: mycarousel_itemloadcallback } }); }); }); <div class="col-md-4 boxopacity" style="margin-top: -10px;"> <div class="headline"> <h2>painting blog & information</h2> </div> <ul id="mycarousel" class="jcarousel-skin-ie7"> </ul> </div>
it helpful if clue me in i'm missing? thanks!
can please make sure path of "jcarousel.min.js" file right or not?
it shows me below error.
"networkerror: 404 not found - http://www.davincispainting.com/js/jquery.jcarousel.min.js"
if please make correct path same. or can use below path also. please check , let know if still getting same issue.
jquery.jcarousel.js
and include 1 more file after jquery file
Comments
Post a Comment