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
|
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!
|