Hi Cheryl and Ryan,
Glad it works well. I have changed my approach since using that
solution. I know formatting on the fly works well for the USER
experience, but as I didnt know how it worked well when I had to use sum
total calculations, I approached it differently to make it
foolproof...at least I think I did.
So what I did in another version is to allow the USER to enter the
values either as an integer or decimal and the values would be formatted
with commas and currency in their respective hidden field (in my example, I am using text box, but change to hidden when ready). This way
if I have to supply the fields in the e-mail in a nice format, my hidden
fields took care of it.
I also, added some functionality where I can limit the USER to only add a
set number of decimal values (in my case 2 places) and limit any
unwanted characters. These functions are to be credited from this link
at:
http://www.mredkj.com/tutorials/validate2.html
It gives many options on how to limit a user on input whether its a
currency, integer or a negative values...no unwanted characters are
restricted which is nice.
I also created a READ ONLY attribute script for my Total.
If you dive into my example, you can see what I did.
The link can be found at Datasprings BetaSprings site at:
http://www.betasprings.com/Dynamic-...fault.aspx
To access the example:
User name:host
Password:dnnhost
Hope this options helps others too.
-Chuck
Note: I added onkeypress, onkeyup and onblur to the $(token) questions so Javascript events would be enabled.