jAutoCalc icon indicating copy to clipboard operation
jAutoCalc copied to clipboard

NaN related error while entering value

Open rink151 opened this issue 3 years ago • 3 comments

after adding "jAutoCalc" to my php page. I am receiveing this error, not sure how I can resolve it. image

"ok: is in infinite loop, I cant procced further after clicking.

error appear as soon as I type number.

rink151 avatar Mar 26 '21 21:03 rink151

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.

c17r avatar Mar 27 '21 12:03 c17r

Hello c17r, Here is the code that I am using.

rink151 avatar Mar 27 '21 22:03 rink151

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 :)

tobybot avatar Jun 02 '21 20:06 tobybot