[thelist] javascript & forms
dave gray
davegray at digiweb.com
Mon Apr 3 14:22:36 2000
<<Also,if you're using a textarea box, which is where most people hit enter,
add
"wrap=physical" to the tag so the user doesn't feel the need to return.>>
cool! yet another little nugget of knowledge for me, which also incidentally
isn't in O'Reilly's Dynamic HTML reference!
another thing you might try for the form problem is to use a hidden field as
a flag to test for when you're submitting - ex: have
<input name=flag value=0>
and in your form tag, have an onsubmit handler that returns the return val
of your validate function like so:
<form name=formname onsubmit="return validateFuction;">
and then your validate function will set flag to 1 (or 32) if everything is
ok and then do
return document.formname.flag.value;
or something.
there is probably an easier way to do that...
HTH
-dave