arielsalminen/ResponsiveSlides.js

Uncaught TypeError: a.before is not a function

emfluenceindia opened this issue · 0 comments

Hi,
I tried to integrate your pulgin in a Drupal 6 project but got this:

Uncaught TypeError: a.before is not a function at z (responsiveslides.min.js:3) at responsiveslides.min.js:6

I tried jQuery.noConflict() but no luck.

Both responsiveslides.css and responsiveslides.min.js are referenced in head and paths are correctly rendered.

HTML:

 <ul class="rslides rslides1" id="home_slider">
      <li><img src="/sites/all/themes/pros/images/home-page/f2.jpg" alt=""></li>
      <li><img src="/sites/all/themes/pros/images/home-page/f4.jpg" alt=""></li>
      <li><img src="/sites/all/themes/pros/images/home-page/f5.jpg" alt=""></li>
 </ul>

JS:

jQuery(document).ready(function(){ //Responsive slides jQuery("#home_slider").responsiveSlides({ speed: 1000, maxwidth: 460 }); });

I already have an element with <div id="wrapper"> and I put the HTML inside that element so that it looks like:

 <div id="wrapper">
      <ul class="rslides rslides1" id="home_slider">
           <li><img src="/sites/all/themes/pros/images/home-page/f2.jpg" alt=""></li>
           <li><img src="/sites/all/themes/pros/images/home-page/f4.jpg" alt=""></li>
           <li><img src="/sites/all/themes/pros/images/home-page/f5.jpg" alt=""></li>
      </ul>
 </div>

Thank you!