I’m getting a Javascript error on the homepage of a site I’ve developed. On the homepage there is a jCarousel scroller to scroll between profiles.
The error is as follows:
this.clip[0] is undefined
On line 844 of jquery.jcarousel.js.
And the URL is http://www.professionalgirlfriends.co.uk – Excuse the subject matter, as it’s an escort website.
Any idea what’s up?
I actually just fixed it myself. The thing that was causing the issue is as follows:
In one of my Javascript files, I have the following code:
This code is there to load the jcarousel on just the homepage. The thing that was causing the issue is I wasn’t being specific enough when I was triggering the jcarousel. In other words, there was more than one
.view-contenton the page.I changed it to:
All sorted now though!
Thanks