Javascript Image Slider > Posts >

 

js-image-slider.js e is undefined

Mike
8 months ago
Viewed: 505
1
Useful
I moved everything over to my server, edited the .css and .js files to my liking, however my images aren't loading. I just get the loading animation. I verified that all of my links are correct but did notice this error coming from The Web Developer extension for Firefox:

JavaScript Error: TypeError: e is undefined  Line 21

I was wondering if anyone was experiencing this issue. I'm not really a Java programmer, but in looking over the function, it does appear to my eye that 'e' is definitely defined.

Thank you for any help you can provide.


8 months ago
Milo   Edit
1

I found you have many <br /> within the slider tag. Maybe that is the cause of the issue.
Remove them and try again.


8 months ago
Mike   Edit
0

Thank you Milo, that did it. I changed the input format from Full HTML to PHP Code and that fixed it. With Drupal, using Full HTML as the input format adds automatic an automatic <br /> tag every time you hit Enter while inputting code which is why there were so many.

8 months ago
Milo   Edit
0

Can you share your URL of the page so that I can take a look?

8 months ago
Mike   Edit
-1

http://www.westchesterlibraries.org/testPage

I'm not sure if it makes a difference that it's a Drupal based site, but I made sure to add the .css and .js files through the site's template.php using the proper Drupal functions.


New Answer