logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Lionel
    • Posted on Tue 29 Jun 2004

    Hi Jake,

    As usual your article is excellent. I ignored the way one writes a script that disables validation. Your demonstration is really convincing.

    In your article you do not mention the functions @Failure and @Success. One can use them the following way in a field's validation (in this example the field is called MyDate):

    Ai := "<BODY><SCRIPT LANGUAGE=\"JavaScript\">" ; Msg := "alert(\'The field DATE is mandatory\')"; Af := ";history.go (-1) ;</SCRIPT></BODY>" ; MsgError := Ai + Msg + Af ; @If(MyDate="";@Failure(MsgError);@Success)

    It's a server side validation too. Don't you like this way of managing it?

    PS: I take this opportunity to congratulate you about the excellent entries you recently wrote about DHTML: date picker, optgroup and color picker. That's really great.

    Kind regards, Lionel http://double-six.org/

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: