Welcome Guest Search | Active Topics | Sign In | Register

MaskedEdit javascript with multiple parameters Options
jvilloria
Posted: Wednesday, October 12, 2011 11:00:35 AM
Rank: Newbie
Groups: Member

Joined: 10/12/2011
Posts: 1
Hello.

I need to call, from the ClientSideOnChange event of a MaskedEdit control, a javascript function that requires 2 parameters. The control only allows to call the function without passing any parameter. Could you be so kind as to provide an example of how to achieve this?
eo_support
Posted: Wednesday, October 12, 2011 12:56:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

ClientSideOnChange is the name of the function you provide. You can call whatever code with whatever arguments in your handler. For example:

Code: HTML/ASPX
<eo:MaskedEdit ClientSideOnChange="change_handler" ...>
...
</eo:MaskedEdit>


Code: JavaScript
function change_handler()
{
    any_of_your_function(arg1, arg2);
}


Hope this helps.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.