jAutoCalc
jAutoCalc copied to clipboard
NaN related error while entering value
after adding "jAutoCalc" to my php page. I am receiveing this error, not sure how I can resolve it.
"ok: is in infinite loop, I cant procced further after clicking.
error appear as soon as I type number.
Need to provide more details, like the html and the equation you are trying to do. Without it, the only thing I can guess would be a divide by zero or the way you’ve set it up it’s trying to use a string in the equation
On Mar 26, 2021, at 17:52, rink151 @.***> wrote:
after adding "jAutoCalc" to my php page. I am receiveing this error, not sure how I can resolve it.
"ok: is in infinite loop, I cant procced further after clicking.
error appear as soon as I type number.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello c17r, Here is the code that I am using.
I ran into this same problem when using autocalc with form fields. If you're typing ".3" into the field, you type the dot and it tries to calculate, and throws an error, before you can type the 3. It doesn't happen if you type a zero first (0.3) but I can't rely on users to do that.
This may be the issue the above user was experiencing. Anyway, just a heads up :)