Welcome Guest Search | Active Topics | Sign In | Register

MsgBox-CallBack Function Parameters Options
Vishakha
Posted: Tuesday, March 2, 2010 4:22:49 AM
Rank: Member
Groups: Member

Joined: 2/5/2010
Posts: 24
Hi,

I am having msgbox control on my page.I want to pass few parameters to my callback functions(button event handler functions). Can I do the same?
e.g.
eo_MsgBox(
"MsgBox1", //ID of the MsgBox control
"Hello", //Message box title
"This is a test message.", //Message text
null, //Icon
[
{
Text: "OK", //OK button
ClientSideHandler: "btn_ok('aa','bb')" //Client side event handler
},
{
Text: "Cancel", //Cancel button
ClientSideHandler: "btn_cancle" //Client side event handler
}
]
);

function btn_ok(test1,test2)
{
alert(test1);
alert(test2);
}



Thanks & Regards,
Vishakha
eo_support
Posted: Tuesday, March 2, 2010 11:11:47 AM
Rank: Administration
Groups: Administration

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

No. You can not do that. The function is always called with two predefined arguments: the first is the dialog object; the second is the button index. You can code your logic based on those two arguments, but you can not pass your own arguments in.

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.