I have this jsfiddle set up with a script that takes the value of 4 sliders and subtracts it from a total. The script is working perfectly, but when I upload it to the server, I get an “uncaught rangeError” message. I’m not sure how to get rid of it. I don’t want to change the functionality in anyway, I just want to get rid of the error message.
Share
Here is the fiddle with the correct answer:
http://jsfiddle.net/mysticgohan53/A2YsU/19/
I moved the refresh into the if/else statement and that seems to have worked. I would imagine that it has something to do with recursion like @SimeVidas was saying.
Unfortunately, I’m not a javascript ninja, so I can’t really tell why this is working now.