Hi to all,
it is possible to get the clicked button of a radprompt?
I try to check if the OK Button is clicked and the Textbox left blank to call another Alert with an error message.
My problem is that when i clicked the CANCEL Button i get the NULL Value and when i left blank the textbox and click the OK Button then i also geht the NULL Value.
<script type="text/javascript"> |
function openPrompt(TitleText, Text, IText, IIndex) { |
document.getElementById("<%= hdnIIndex.ClientID %>").value = IIndex; |
radprompt(Text + '<br style="clear:both" /><strong>' + IText + '</strong>', promptCallBackFn, 330, 100, null, TitleText, null); |
} |
function promptCallBackFn(arg) { |
document.getElementById("<%= hdnText.ClientID %>").value = arg; |
if (arg != null && arg != '') { |
document.getElementById("Refresh").click(); |
} |
else { |
radalert('You have clicked OK, but the text is blank', 330, 100, 'Error Msg'); return false; |
} |
} |
</script> |