I have this RadTextBox:
Note the parenthesis on
If I remove the parenthesis from the function call, the function is not executed. If I keep the parenthesis, the function is executed (see below), but the parameters are not passed.
I need the parameters to check if the value in the RadTextBox has changed, and if so, make an amimation.
Any idea about why the parameters are not being passed?
<
asp:panel
id
=
"div_projectsAssigned"
runat
=
"server"
class
=
"infoBox-projectsAssigned"
>
<
telerik:RadTextBox
ID
=
"txtProjectsAssigned"
runat
=
"server"
Text
=
"0"
BorderStyle
=
"None"
ReadOnly
=
"True"
Width
=
"42"
>
<
ClientEvents
OnValueChanged
=
"onValueChanged()"
/>
<
ReadOnlyStyle
HorizontalAlign
=
"Center"
BackColor
=
"Transparent"
ForeColor
=
"White"
Font-Bold
=
"True"
Font-Names
=
"Segoe UI"
Font-Size
=
"12pt"
Width
=
"30px"
>
</
ReadOnlyStyle
>
</
telerik:RadTextBox
>
</
asp:panel
>
Note the parenthesis on
ClientEvents OnValueChanged="onValueChanged()" />
If I remove the parenthesis from the function call, the function is not executed. If I keep the parenthesis, the function is executed (see below), but the parameters are not passed.
<script type=
"text/javascript"
>
function
onValueChanged(sender, args) {
if
(args.get_oldvalue != args.get_newvalue) {
thisDiv = $get(
"<%= div_projectsAssigned.ClientID %>"
);
esteDiv =
"#"
+ thisDiv;
animateDiv(thisDiv);
}
}
function
animateDiv(divToAnimate) {
for
(i = 1; i <= 3; i++) {
$(divToAnimate).animate(
{
"opacity"
:
"0.15"
},
"slow"
);
$(divToAnimate).animate(
{
"opacity"
:
"1.00"
},
"slow"
);
}
}
</script>
I need the parameters to check if the value in the RadTextBox has changed, and if so, make an amimation.
Any idea about why the parameters are not being passed?