【发布时间】:2013-09-13 19:27:58
【问题描述】:
我有一个 jquery 对话窗口,用户可以在其中配置具有不同要求的新服务器。现在,当用户点击“保存”时,我们希望打开一个确认窗口以确认用户想要执行此操作。
我主要关心的是这是对话框中的一个对话框。
这是对话框的代码
$('#newenvironment').dialog({
autoOpen: false,
buttons: {
'Save': function() {
var url = "./environment/new/";
// There is code here that processes the fields
// code to send the data to the server
// URL gets built
c.post(url);
$('#newenvironment').dialog('close');
},
'Cancel': function() {
$('#newenvironment').dialog('close');
}
},
modal: true,
width: 640
});
谢谢:)
【问题讨论】:
标签: javascript jquery dialog confirm