473,326 Members | 2,192 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,326 software developers and data experts.

validation question

Ely
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely
Nov 18 '05 #1
2 1578
Don't use a validator, write your own javascript and use the onblur event.

"Ely" <el**@ianinc.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely

Nov 18 '05 #2
I'm not sure why you explicitly want the ValidationSummary to appear upon
getting the first error. You can fake it in several ways.
1. Put the validators in the location of the ValidationSummary control. Omit
the ValidationSummary itself. This is still tricky due to formatting
multiple messages.
2. I wrote a replacement to Microsoft's validators to overcome its many
limitations. "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) has several features that may help:
- If you are putting error messages elsewhere because of screen realestate,
my validators offer several "ErrorFormatters" that take up very little
screen space: an image that pops up the error message via alert or tooltip;
a hyperlink that shows an alert with the error message.
- My ValidationSummary auto shows and hides error messages as the user
edits. However, it doesn't show unless the user submits or you write one
call to my javascript that is invoked as the page is loaded.
- My CombinedErrorMessages control is a kind of mix between a
ValidationSummary and normal validators. It lets you group a list of
validators. They appear at the location of this control, like a
ValidationSummary, but at the time the edit is made.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Ely" <el**@ianinc.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
9
by: rbronson1976 | last post by:
Hello all, I have a very strange situation -- I have a page that validates (using http://validator.w3.org/) as "XHTML 1.0 Strict" just fine. This page uses this DOCTYPE: <!DOCTYPE html PUBLIC...
16
by: Hosh | last post by:
I have a form on a webpage and want to use JavaScript validation for the form fields. I have searched the web for form validation scripts and have come up with scripts that only validate...
1
by: Colin Basterfield | last post by:
Hi, I have a web form which takes daily sales totals, both counts and monetary value and is done on a weekly basis, so on a Monday morning the User would enter these totals. Each total has a...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
8
by: Joe | last post by:
Hi, I have a form with three text fields and a Submit button. The two text fields have ReqiredFieldValidator and third text field has RegularExpressionValidator. The page validation works fine...
2
by: winnie_us99 | last post by:
Hi All, I am trying to do validation on my text field before going to the next page to create a user. It doesn't look like the next button will fire any validation. Am I missing something? Can...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.