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.
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/