Wee Ler Ping
|
| Posted: 03/13/2002, 10:47 PM |
|
Hello there,
Is there a way to use JSP in form validation where when you do not key in
the value of a required field (Say, Password), the usual message of "The
value for field password is required" is red in colour and also - the
Caption - of the field turns red to show the user where exactly he needs to
fill in?
Yours,
Wee Ler Ping
|
|
|
 |
Wee Ler Ping
|
| Posted: 03/13/2002, 10:56 PM |
|
Sorry forgot to one this in.
I've seen some of the examples and tips but can't find any that suits this
purpose.
in Grid format it is possible to create an EDIT field to click and edit the
details of the record. How do you create a DELETE field where you can simply
click on the DELETE and you will be alerted a confirmation on whether or not
you want to delete that record, without actually having to click on EDIT,
and then the DELETE button?
Yours,
Wee Ler Ping
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/14/2002, 4:39 AM |
|
You may try to change field caption on the fly if you have
a template variable inside caption , e.g. caption is {field1}
and you populate it in Validation event :
oTpl.setVar ("field1", "<font color=#FF0000>" + fldfield1 + "</font>");
You can read about template variables at gotocode.com/artlist.asp.
Message in red is obtained by assigning error text to s[FormName]Err
variable.
--
Alex
CodeCharge Developer
"Wee Ler Ping" <weesulin@singnet.com.sg> wrote in message
news:a6ph2d$kim$1@news.codecharge.com...
> Hello there,
>
> Is there a way to use JSP in form validation where when you do not key in
> the value of a required field (Say, Password), the usual message of "The
> value for field password is required" is red in colour and also - the
> Caption - of the field turns red to show the user where exactly he needs
to
> fill in?
>
> Yours,
> Wee Ler Ping
>
>
|
|
|
 |
|