Re: Advanced HTML DOM Issue



Don't TOP POST

Whit wrote:
I don't want to use onchange, because the user needs to see that the
changes are legit before submitting. With onchange the submit button
could be pressed before the swap occurs.

Well since you are using client-side I would expect you would run a validation onsubmit for the form! Also regardless of what you do client-side the receiving server-side should also validate (an possibly reformat the string as well) You should not be relying on JavaScript here, it can and will be disabled for some of your visitors. Use JavaScript to augment only


I have a button that allows them to turn this auto-formatting off, but
it really needs to occur in place. If they are frustrated, they can
kill it.


Even more reason not to do it on the keypress.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.