You are hereBlog / bug fixed: jCarousel width/height infinite loop popup alert error
bug fixed: jCarousel width/height infinite loop popup alert error
PROBLEM: While loading, jCarousel spits out a popup alert with this error message:
"jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."
On this website, I use jCarousel for the "Lifestream" scroller on the front page tabs block. I would always get this error message every time the front page loads, regardless of the browser I use. I have been searching for a solution for many months and have finally found one.
SOLUTION: Not sure if this is really a solution or workaround, but it does the job of stopping the nagging popup box once and for all (while permitting jCarousel functionality).
- Open jquery.jcarousel.pack.js in the ../jcarousel/lib/ directory.
- Seach for the word "alert" and you should find a snippet of code like this:
Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|alert|class| - Replace "alert" with "isNan":
Aborting|loop|infinite|an|cause|will|This|items|set|No|jCarousel|isNan|class| - Refresh the webpage that loads jCarousel and you should no longer get the infinite loop popup error!





I really enjoyed this.. What a good Article!!
Jill xx
I absolutely love that title that makes me feel inspired to take unthinkable but smart chances on myself and others to bring that vision into reality.
email marketing
Great work, keep it up. I love returning back to this site and reading the quality content you always have on offer.

