Hi,
I call a RadConfirm box from a JavaScript function like:
$get("<%=btnNoVr.ClientID%>").onclick = function()
{
CallRadConfirm(stat, id, 'Can you Confirm?');
};
function CallRadConfirm(status, ID, message)
{
radconfirm(rmessage, confirmCallBackFn, 350, 10, '', 'Confirm');
function confirmCallBackFn(arg)
{
if(arg == true)
{
$get("<%=hfIsNoVR.ClientID%>").value = "Y";
if (status == "true")
{
return true;
}
else
{
window.location.href = '/_layouts/test/test.aspx?ID=' + ID + '&PageFrom=Select&Action=NO';
window.event.returnValue=false;
}
}
}
}
here i get the Confirmation box but postback happens immediatelly before i chose ok or cancel.
How do i stop that?
Thanks,
Varun R
I call a RadConfirm box from a JavaScript function like:
$get("<%=btnNoVr.ClientID%>").onclick = function()
{
CallRadConfirm(stat, id, 'Can you Confirm?');
};
function CallRadConfirm(status, ID, message)
{
radconfirm(rmessage, confirmCallBackFn, 350, 10, '', 'Confirm');
function confirmCallBackFn(arg)
{
if(arg == true)
{
$get("<%=hfIsNoVR.ClientID%>").value = "Y";
if (status == "true")
{
return true;
}
else
{
window.location.href = '/_layouts/test/test.aspx?ID=' + ID + '&PageFrom=Select&Action=NO';
window.event.returnValue=false;
}
}
}
}
here i get the Confirmation box but postback happens immediatelly before i chose ok or cancel.
How do i stop that?
Thanks,
Varun R