Click here to get back home

Validation errors: Popup or errorline ?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Validation errors: Popup or errorline ? lister 11-25-2006
Posted by lister on November 25, 2006, 7:19 pm
Please log in for more thread options


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)


Posted by McKirahan on November 25, 2006, 7:51 pm
Please log in for more thread options


> 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...)



Posted by lister on November 25, 2006, 8:26 pm
Please log in for more thread options


> 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.


Similar ThreadsPosted
Simple fix..validation errors at W3C... November 19, 2004, 5:14 am
PHP output errors leading to cross-browser mistakes? Mac errors but PCs are fine. January 28, 2005, 1:31 pm
CSS popup tooltips June 15, 2005, 8:37 am
scrollbar won't add to popup window July 22, 2004, 1:57 pm
animated gif stops when used as a link to a popup March 11, 2006, 11:48 am
code to popup link in new browser window January 2, 2005, 10:05 pm
Is there soemthing called modal popup windows? May 16, 2007, 8:36 am
HTML Form post to popup-window January 22, 2008, 10:41 pm
How to remove automatic printing popup from saved web page? July 3, 2005, 10:52 am
How do I pass a list of arguments from a popup window to the parent window? July 6, 2006, 4:49 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap