Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: a.before is not a function #385

Open
emfluenceindia opened this issue Jul 3, 2017 · 0 comments
Open

Uncaught TypeError: a.before is not a function #385

emfluenceindia opened this issue Jul 3, 2017 · 0 comments

Comments

@emfluenceindia
Copy link

emfluenceindia commented Jul 3, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant