i m 试图取代标准javascript,用JQueryUI 方言确认功能。 我曾寻求解决办法,但我似乎没有任何工作。 很简单:点击伙伴关系。 显示方言的“Yes”继续使用。 现行法
$(document).ready(function () {
$("#confirmDialog").dialog({
autoOpen: false,
modal: true,
closeOnEscape: false,
bgiframe: true,
open: function (event, ui) { $(".ui-dialog-titlebar-close", ui.dialog).hide() },
buttons: {
"Yes": function () {
$(this).dialog( close );
return true;
},
"No": function () {
$(this).dialog( close );
return false;
}
}
});
});
function showDialog() {
$("#confirmDialog").dialog( open );
return false;
}
ASP. NET代码:
<asp:Button ID="DeleteButton" CssClass= button onmouseout="this.className= button "
onmouseover="this.className= button:hover " runat= server Text= Delete Width= 1in
Height="30px" OnClientClick="javascript:showDialog();" OnClick="DeleteSetup"/>
What s happening is that the dialog is displayed, but DeleteSetup vb.net sub is called before anything is selected in the dialog.
事先得到任何帮助或咨询。