Does anyone have a method - that they are willing to share for expanding the normal Microsoft clientside validation to automagically set the focus - upon the validation firing to the first field that failed the validation - I have a method, which involves intercepting
the page_validate function in Javascript, but it is less than optimal, if changes the behavior of the main function so that other controls that depend on this, then fail, so I am discarding this as an option Anyone else got any solutions DavidM
Various IBS Addons available at http://www.snowcovered.com
David - I went towards the ValidationSummary method. I did this because I thought automatic focus would confuse the user (IMHO). I have some large dynamic forms that must be scrolled, so I dynamically inject an anchor tag next to each field name. Then I run
dynamic validators against whichever is required. If any fail they are displayed at the top of the page in a ValidationSummary, with hyperlinks to the fields that have failed. I'd be interested to hear if anyone has a robust client-side approach. Steve
Hi David, It's been a while since we chatted. Have you checked out my replacement for Microsoft's validation framework, "Professional Validation And More"?
http://www.peterblum.com/vam/home.aspx. Its designed to greatly expand the UI choices you have for validation. Along with setting the focus to the first field failed, it can: * use different error message
formats like images that popup tooltips or alerts * put the focus on the field immediate after the user changes * blink the error message * The ValidationSummary can include hyperlinks on each error message listed to put the focus to the field. * Change the
color of the field with the error
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
Hey Peter - yeah it has been a long time - via series of inherited MS controls, we can do all the features that you mention in your list - apart from setting the first failed control focus - your suite looks mighty impressive and I may have to take a longer
look when I get some time (training for MCSD at the moment (MCAD by the end of this week) hope to get that finished by mid Jan) DavidM
Various IBS Addons available at http://www.snowcovered.com
DavidGMiles
Participant
1860 Points
372 Posts
MS Clientside Validation and focussing on the first failed field
Dec 06, 2003 09:27 AM|LINK
Lead Developer [vb & c#] - MCAD
dickies
Participant
970 Points
199 Posts
Re: MS Clientside Validation and focussing on the first failed field
Dec 06, 2003 12:01 PM|LINK
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: MS Clientside Validation and focussing on the first failed field
Dec 08, 2003 08:12 PM|LINK
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
DavidGMiles
Participant
1860 Points
372 Posts
Re: MS Clientside Validation and focussing on the first failed field
Dec 09, 2003 09:23 PM|LINK
Lead Developer [vb & c#] - MCAD