Mar 04, 2011, 9:33 AM
[CLOSED] Confirmation Message
Hi;
i want to make a confirmation before clicking on a delete Button i succeed using the java-script confirmation
i there any way to implement it using Using the Confirm Standard Yes/No dialog as in the Demos
https://examples1.ext.net/#/MessageBox/Basic/Overview/
any suggestions ??
N.B Using version0.8.x
Thanx u in Advance
i want to make a confirmation before clicking on a delete Button i succeed using the java-script confirmation
i there any way to implement it using Using the Confirm Standard Yes/No dialog as in the Demos
https://examples1.ext.net/#/MessageBox/Basic/Overview/
any suggestions ??
N.B Using version0.8.x
Thanx u in Advance
<script type="text/javascript">
function confirmation() {
input_box = confirm("Click OK or Cancel to Continue");
if (input_box == true) {
return true;
}
else {
return false;
}
}
<ext:Button ID="btnDelete" runat="server" Text="Delete" Icon="Cancel">
<Listeners>
<Click Handler="if(confirmation()){Coolite.AjaxMethods.Delete( { success: doAlert});}" />
</Listeners>
</ext:Button>
Last edited by Daniil; Mar 07, 2011 at 9:21 PM.
Reason: [CLOSED]