Hi there,
The documentation for RadWindow contains the following:
Optionally, you can add additional arguments to supply the dialog with a width, height, and title, as well as an object you can use to pass information you think will be helpful in the callback. This object can be programmer defined or you can send a reference to some HTML object on the page.
My question is, how do I access that object? I figured it would work like this:
// Code calling radconfirm
var myState = 'Some State';
radconfirm('Are you sure', MyCallBack, 300, 300, myState, 'Delete');
Then I could have the following call back handler:
function MyCallBack(arg, state)
{
if (arg)
{
alert(state); // would alert the text 'Some State'
}
}
This is the way many other callback handlers normally work. However, no matter what I try, state is always null.
Any ideas? Am I overlooking something? Or is the documention incorrect?
Kind regards,
Imar
The documentation for RadWindow contains the following:
Optionally, you can add additional arguments to supply the dialog with a width, height, and title, as well as an object you can use to pass information you think will be helpful in the callback. This object can be programmer defined or you can send a reference to some HTML object on the page.
My question is, how do I access that object? I figured it would work like this:
// Code calling radconfirm
var myState = 'Some State';
radconfirm('Are you sure', MyCallBack, 300, 300, myState, 'Delete');
Then I could have the following call back handler:
function MyCallBack(arg, state)
{
if (arg)
{
alert(state); // would alert the text 'Some State'
}
}
This is the way many other callback handlers normally work. However, no matter what I try, state is always null.
Any ideas? Am I overlooking something? Or is the documention incorrect?
Kind regards,
Imar