jquery - Jcarousel how to re-execute connector function? -
using great jcarousel connected carousels plugin, execute using file https://github.com/jsor/jcarousel/blob/master/examples/connected-carousels/jcarousel.connected-carousels.js, see
$(function() { // setup carousels. adjust options both carousels here. var carouselstage = $('.carousel-stage').jcarousel(); var carouselnavigation = $('.carousel-navigation').jcarousel();
initializes jcarousel()
, it's working great, i'm inserting new images on carousel-stage
, carousel-navigation
on fly, , on new images effects not being applied, how reinitialize function on file?
when append new pictures, call "destroy" method ( http://sorgalla.com/jcarousel/docs/reference/api.html#destroy ) , restart pluggin calling
var carouselstage = $('.carousel-stage').jcarousel(); var carouselnavigation = $('.carousel-navigation').jcarousel();
back again. so:
// destroy // add images // rebuild
Comments
Post a Comment