bxSlider not working on AJAX loaded content -


i using bxslider on site. when select size dropdown menu, use ajax specific content slider , input it.

the content there, no worries. doesn't work actual slider. when click on arrows, doesn't move or anything.

on loading new content slider, call slider function, doesn't work.

any ideas?

this code below inserting ajax content in correct element on page, calling slider function.

$('.bxslider').html(po_data.slider); runslider(); 

i solved else having same problem. destroyed slider, recalled again.

var go_slider = null; 

function runslider() {

   if (go_slider) {       go_slider.destroyslider();    }      go_slider = $('.bxslider').bxslider({       minslides: 4,       maxslides: 4,       moveslides: 4,       slidewidth: 208,    }); 

}

works perfectly! hope can out!


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -