473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1920
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ewan B | last post by:
Hi, I'm using Xerces to parse XML files using SAX2, and am wondering if there is any information as to what exceptions are being thrown when certain validation errors occur. Taking a simple...
2
by: Keith Russell | last post by:
Hi. I am trying to learn a little bit of XML (and XHTML), using "XHTML Black Book" by Steven Holzner. I am getting numerous validation errors from the XML examples in the book. I have tried...
3
by: CJM | last post by:
I'm adding some extra features to an intranet-based ASP application...(IE6 clients) As part of the process, I thought I would give the html a mid-life upgrade, ie. remove much of the tag-soup,...
2
by: Sudip Chakraborty | last post by:
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack...
1
by: Prodika | last post by:
With the 1.0 Framework, I've worked out using the XmlValidatingReader. Since I'm using the validation errors as feedback to the end user, I'm hoping to get away from techy messages such as "The...
2
by: lister | last post by:
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...
7
by: jimrich | last post by:
Hi, using firefox browser and have a FrontPage built site: www.irenezart.com. used W3C markup validation service which came up with lots of errors in my index page. then I changed the doctype...
3
by: hardieca | last post by:
Hi, I've created an n-tier app where validation rules reside in the business layer. When a webform is saved, a business object examines its state, and if some property is invalid, throws a...
4
by: Lit | last post by:
Hi, I have a web page that does not fit all on the screen vertically. At the bottom I have a submit button, When I click on the Submit button and have Validation Errors at the top. the...
0
by: kenkejas | last post by:
Hello public, Got a problem. While generating proxy classes getting warnings: Schema Validation Errors: Error compiling schema. WSDL descriptor is public:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.