Malioglasnik.com.hr

[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
jCarousel width/height infinite loop popup alert error
BassoDate: Monday, 2010-04-26, 11:08 PM | Message # 1
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

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!



Message edited by brna - Tuesday, 2012-05-01, 11:04 PM
 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



  • Page 1 of 1
  • 1
Search:
Forum Advice
Security advice: Protect your identity when downloading!
Your real identity and ip address is visible while downloading. These days, everyone's looking to throttle your connection, spy on what you're downloading, or even send you an ominous letter. If you use BitTorrent, you absolutely need to take precautions to hide your identity. An easy and raliable solution is a VPN by hide.me. Hide.me doesn't store any logs and offers blazing fast connections.Hide.me VPN is trustedby more than 500.000 internet users worldwide and recommended by Brna.my1.ru.