0
我创建jQuery UI的对话框是这样的:想显示继续,如果我OK按钮点击从jQuery UI的对话框
$("<div></div>").dialog({
autoOpen: true, //for info, true is default
modal: true,
title: ':' + Id,
width: '340',
minHeight: '200',
open: function() {
},
close: function() {
$(this).dialog('destroy');
}
});
在此
,我想设置OK按钮,如果我按OK按钮,它会经过下面的AJAX方法:
$.ajax({
url: "Home.aspx/DeleteProject",
type: "POST",
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: "{'projectSoid': '" + Id + "'}",
async: false,
success: function (data) {
if (data.d == "")
{
ProjectCarousel();
}
},
error: function (xhr) {
}
});
是“确定”按钮关闭对话框上_only_按钮,或者是有一个“取消”按钮呢? – Alnitak 2013-03-08 15:09:19