I found a JQuery Alert plugin here, http://www.abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ So I made a sample page to test it out but it does not seem to work on Runat="server" button. The second button is just something I tried to stop the button from posting back and it seems to do that but after confirming, it won't go anywhere.
I would appreciate any help on this.
<script src="js/jquery.alerts.js" type="text/javascript"></script>
<link href="css/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
function confirmThis() {
jConfirm('Can you confirm this?', 'Confirmation Dialog', function (r) {
jAlert('Confirmed: ' + r, 'Confirmation Results');
return r;
});
return false;
}
$(document).ready(function () {
$("#btnNext").click(function () {
jConfirm('Can you confirm this?', 'Confirmation Dialog', function (r) {
jAlert('Confirmed: ' + r, 'Confirmation Results');
return r;
});
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnNext" runat="server" Text="Confirm 1"/>
<asp:Button ID="Button1" runat="server" Text="Confirm 2" OnClientClick="return confirmThis();"/>
</div>
</form>
</body>
</html>