Re: focus after onchange event and regex test not working



jab3 wrote:
RobG wrote:

jab3 wrote:
[...]
By all means provide a helpful message onchange if you think the address
is wrong, but that's it.


I agree, and I was always planning on doing validation on the
server-side too, just because 'bad' people could submit information
outside of the form period. But I do like the idea of some dynamic
validation on the client's machine to cut down on server/client
communication. I am going to reassess this e-mail validation lock,
however. Like the comment in the code says, the validation is basic,
which is why I ask for the email again, and then I may send a response
for verification. Who knows. I do like the idea of setting a simple
message that suggests the email is invalid. At least let 'em know I'm
on to 'em. haha

Make sure the message lets them know what you consider valid. The usual idea is to have on-screen help that unobtrusively suggests a format wherever validation is to be applied. It should be in the HTML and its visibility should not be script-dependent (though you might use script to highlight it if validation fails).

[...]


--
Rob
.



Relevant Pages

  • Re: Need help on validation on a group of controls
    ... Here is the defenition of the CustomValidator control in my .aspx page ... I would use the following server-side event: ... because the validation involves the value of multiple controls. ... able to enter more than 8 charecters of the total VIN numner. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Need help on validation on a group of controls
    ... Here is the defenition of the CustomValidator control in my .aspx page ... I would use the following server-side event: ... because the validation involves the value of multiple controls. ... able to enter more than 8 charecters of the total VIN numner. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Do not show form field requirements
    ... There are two types of validation: clinet-side and server-side. ... mandating they submit a Social Security number through a web page ... as a 'Student Number' or some other such lie. ...
    (microsoft.public.frontpage.programming)
  • Re: Date field in DD/MM/YYY
    ... done server-side. ... it may make sense to do more client-side ... If client-side validation can ensure, or nearly ensure, that normal ... side Javascript validates a date string as ISO-8601 compliant, ...
    (comp.lang.javascript)
  • Re: form validation
    ... both client and server-side validation should be done if possible. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.general)