469,889 Members | 1,314 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

Validation errors: Popup or errorline ?

I have lots of form validation going on.

When something fails validation, I highlight the offending field and
write an error message at the bottom of the form.

This was fine until I was trying to click on a submit button *of my own
form* and wondering why nothing was happening. I had made a mistake in
one of the fields so it had highlighted it, but when I corrected it I
made a *second* mistake which caused the same error. Due to this it
appeared that absolutely nothing was happening when I was pressing
submit.

So I got to wondering whether I should throw up an alert() box instead
(providing Javascript is enabled obviously). This provides immediate
and obvious feedback that an error has occured. However I cannot think
offhand of any sites which do this, so I guess there must be a good
useability reason for not doing it? Other than an extra click though I
cannot see the problem (but then I'm a newbie to this web authoring
lark)

Nov 25 '06 #1
2 1144
"lister" <li************@hotmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
I have lots of form validation going on.

When something fails validation, I highlight the offending field and
write an error message at the bottom of the form.

This was fine until I was trying to click on a submit button *of my own
form* and wondering why nothing was happening. I had made a mistake in
one of the fields so it had highlighted it, but when I corrected it I
made a *second* mistake which caused the same error. Due to this it
appeared that absolutely nothing was happening when I was pressing
submit.

So I got to wondering whether I should throw up an alert() box instead
(providing Javascript is enabled obviously). This provides immediate
and obvious feedback that an error has occured. However I cannot think
offhand of any sites which do this, so I guess there must be a good
useability reason for not doing it? Other than an extra click though I
cannot see the problem (but then I'm a newbie to this web authoring
lark)

I do it with my intranet apps.
Here's an example of the alert():

Missing/invalid data found.
Fix the fields with red arrows.

3 error(s) encountered:

Customer Name
City
State

I store thr value of the field's display name as
a hidden field then show that rather than the
field's internal (database) name; e.g. cusName.

If JavaScript isn't enable how are you doing
client-side validation? If you're only doing
server-side validation that down't the screen
refresh with the errors? (unless AJAX...)
Nov 26 '06 #2
If JavaScript isn't enable how are you doing
client-side validation? If you're only doing
server-side validation that down't the screen
refresh with the errors? (unless AJAX...)
If Javascript is disabled then validation is done server side. The end
result is identical, but if they have Javascript then it is instant
rather than requiring a round trip to the server.

Even when processed server side it can seem confusing as to why the
page hasn't seemingly refreshed.

Nov 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Ben Fidge | last post: by
3 posts views Thread by Chance Hopkins | last post: by
9 posts views Thread by julie.siebel | last post: by
2 posts views Thread by lister | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.