on 04-15-2009 10:41 AM
hi
using htmlb how i will display alert massege in java script on button click
i am using HTMLB button control and in onclick event
OnInputProcessing(save)
using
here in onClick event process gose to event handler but befor that i want to validate some fields so i want display alert massage in java script so how i call the javascript function.
thanks
Edited by: Guptaprashant on Apr 15, 2009 11:41 AM
Edited by: Guptaprashant on Apr 15, 2009 11:44 AM
thnks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
try this
<s c ript l a n g u a ge ="j av as c rip t"
t y pe = "te xt/j a v as c r ipt">
f u n c t i o n v a l i d a ( )
{
valid = true;
if ( d o c u m e n t .n e w s a m p l e . i 1 . v a l u e == ' ' )
{
a l e r t ( "Enter Value" );
valid = false;
}
e l s e
{
ale r t ( "Value Entered" );
}
return valid;
}
</ s c r i p t>
<htmlb:form id="newsample" >
<htmlb : text View text = "Hello World!"
design = "EMPHASIZED" />
<htmlb:input Field id="i1" />
<htmlb:button text = "Press Me"
on C lientClick = "valida()" />
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Friend,
Hope the below coding solves your problem.
functionf_callRedirect
{
alet("Do Validation")}
Place semicolon after DoValidation.
<htmlb:button text = "sub"
design = "EMPHASIZED"
tooltip = "Cancel"
disabled = "false"
width = "60"
encode = "false"
onClientClick = "f_callRedirect();" />
With Regards,
SHARMILA BRINDHA.M
Edited by: SHARMILA BRINDHA on Apr 15, 2009 12:38 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.