S
Sol Linderstein
Hi,
I'm writing a CGI application and here's what I'm stuck with. There
are some text boxes in an html form that I want to validate. The
validation needs to happen on the server side because the data to
validate against is inside a mysql database residing on the server. I
want to present the user with a popup only if the validation fails.
Ideally the user doesn't even know the validation is happening unless
it fails. He just moves from field to field. I know how to trap the
condition of the user moving out of a text field. I know how to invoke
a CGI script from javascript. What I don't know is how, if it's even
possible, to have the result of moving out of the text field trigger
code that either returns silently or opens a popup, depending on what
I find in my validation code.
Is this possible in Javascript? If not can someone recommend what
language I might be able to do this in?
Thanks,
SL
I'm writing a CGI application and here's what I'm stuck with. There
are some text boxes in an html form that I want to validate. The
validation needs to happen on the server side because the data to
validate against is inside a mysql database residing on the server. I
want to present the user with a popup only if the validation fails.
Ideally the user doesn't even know the validation is happening unless
it fails. He just moves from field to field. I know how to trap the
condition of the user moving out of a text field. I know how to invoke
a CGI script from javascript. What I don't know is how, if it's even
possible, to have the result of moving out of the text field trigger
code that either returns silently or opens a popup, depending on what
I find in my validation code.
Is this possible in Javascript? If not can someone recommend what
language I might be able to do this in?
Thanks,
SL