Jquery Too Much Recursion Error -


itemprop = "text">

I hope someone can help me.

I have this code:

  & lt; Script & gt; $ (Document) .ready (function () {spectrum (); function spectrum () {$ ('# down-menu ul li collar a'). Animate ({color: '# E7294F'}, 16000); Spectrum 2 ();} Function spectrum 2 () {$ ('# down-menu UL leagramless A'). Animate ({color: '# 3D423C'}, 16000); Spectrum ();}}); & Lt; / Script & gt;  

It is working, but when I look at the firebug it says that there is a much more recurring error.

I hope someone can tell me why.

Thank you!

The problem is that your script is not being implemented.

When the page loads, you call it the function to run Spectrum () . It runs this function, and then the function is called to run spectrum2 () , which does this. When it eliminates the spectrum 2 () , you ask it to run spectrum () again, and when it is done that it is called the Spectrum2 () again .. see pattern? Your bad script has always been stuck in executing those two tasks!

The process of a function called itself (or repeatedly calls each other again) is called, but generally Rickerson eventually ends up in some way. You never end up, so firebug says, "Wait a minute, this script is never going to end, I'll put a better error!"

This is probably what you are trying to achieve, and the easiest to decide, if you can try and explain what you are trying to achieve, then what Can we help you write the proper code?


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -