Close

jCarousel javascript error

haknesh
6 years ago
#8906 Quote
Avatar
  • 29
Hi,

in my homepage i'm getting a javascript error. I removed and recreated the carousel multipletimes, but the error is still there.

Some help with it would be great.
iliyan.tanev
6 years ago
#8912 Quote
Avatar
  • Moderator
  • 347
Hi,

We noticed that you have done modifications to the views of JCarousel. 
The problem is the variable name in the view of jCarousel. The name of the variable is home-page-brands, which is invalid name in JavaScript standards. You could not use dashes in JS variable names.

Maybe this is some kind of class. You could select the element using JQuery: $('.home-page-brands');
Regards,
Iliyan Tanev
Nop-Templates Dev Team
haknesh
6 years ago
#8921 Quote
Avatar
  • 29
Hi,
That was the problem, and it's working now, thanks!