Any help appreciated
Rob
As David Thau explains in his book, it might have something to do with
IE treating the content of form elements as strings, even when they're
numbers so it concatenates the numbers instead of adding them. He
suggests using parseInt() and I think that parseFloat() also works in
this case.
Here's my suggested solution:
http://www.xlectric.com/temp/addtest.html
If you come back to this group and see this, please let me know if it
works.
Later, Art.
(field1 - 0) + (field2 - 0)
VMDD Tech
http://vmdd.tech.mylinuxisp.com/catalog/
"Rob@" <rob@rob<REMOVETHIS>sweb.karoo.co.uk> wrote in message news:<nimdnbt0Buc...@karoo.co.uk>...
Why not simply use the unary + ?
numericResult = (+field1 + +field2)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
After I posted my reply I tried it out myself. Turns out that parseInt()
doesn't handle the decimals so I use parseFloat() instead.
Later, Art.