Demo code ZIP containing
Paul Glavich's DLL, MSDN's test ASPX and 4GuysFromRolla's
the source of the test page.
About the code
This test page is lifted from MSDN
Samples but it uses Paul
Glavich's DOM Validators.
Microsoft's validation controls (well, the validation architecture in general) is
pretty cool, but severely limited by it's reliance on IE's DOM implementation.
Paul Glavich wrote a set of Validator
controls compatible with Netscape using the W3C DOM v1.0 rather than Microsoft's
when I downloaded his code (it comes complete with VS.NET project) there was no 'sample'
to get running immediately.
The test ASPX page in this
ZIP allows you to try-out the DOMValidator controls quickly and easily. Useful
to confirm your web.config setup is correct, and to test on your favourite non-IE
browser (Mozilla, FireFox, Safari, etc).
Client-side validation in FireFox
view this test page (client side only)
which uses this web.config file
Although I understood the W3C DOM support in Safari would pretty much match Firefox, Mozilla, etc.,
apparently the DOMValidator controls don't work in Safari for the Macintosh. If you can offer any insight into
why this might be, please
subject=[ConceptDevelopment.NET] DOMValidators and Safari">send an email.
All the info you (should) need
Validator Controls MSDN Samples
for Validator Sample for MSDN Samples, but useful for Paul's code too.
page for DOM Validator controls - used to build this
Paul Glavich's DOM
Validators - ZIP file
in Downlevel Browsers (4 Guys from Rolla) - and A Look at ASP.NET's Adaptive Rendering
which contains web.config sections for Mozilla and Safari (but still refers to FireFox as FireBird)
for Firefox & Netscape 7.1 is much more up-to-date than the MSDN page above.
Browser Testing and Detection
Resources for more info on BrowserCapabilities generally
Safari FAQ for the User-Agent string it uses...
Long! list of User-Agent Strings
The Longhorn SDK contains samples for building controls that will work in Netscape!
Glavich's DOM Validators
The original (?) cross-browser validator implementation.
Validation And More
If you want to pay for cross-browser client-side validation, you might try Peter Blum's
control set - very complete and compatible with Mozilla, etc.