Reinitialize Slick js after successful ajax call

You should use the unslick method: function getSliderSettings(){ return { infinite: true, slidesToShow: 3, slidesToScroll: 1 } } $.ajax({ type: ‘get’, url: ‘/public/index’, dataType: ‘script’, data: data_send, success: function() { $(‘.skills_section’).slick(‘unslick’); /* ONLY remove the classes and handlers added on initialize */ $(‘.my-slide’).remove(); /* Remove current slides elements, in case that you want to show … Read more

Slick.js: Get current and total slides (ie. 3/5)

The slider object contains the slide count as property. Slick < 1.5 $(‘.slideshow’).slick({ slide: ‘img’, autoplay: true, dots: true, dotsClass: ‘custom_paging’, customPaging: function (slider, i) { //FYI just have a look at the object to find available information //press f12 to access the console in most browsers //you could also debug or look in the … Read more

Error in slick.js: “Uncaught TypeError: Cannot read property ‘add’ of null”

That’s due to calling init twice. This works without error: $(“.slider”).not(‘.slick-initialized’).slick() Also, “silder” looks like a typo. Relying on a timeout is also error-prone. Unfortunately, Internet Explorer uses a different event to tell you when the HTML elements and JS libraries have been loaded. There are many libraries to avoid the 100 or so lines … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)