jquery
模態對話框是異步的嗎?jquery異步對話框
$('.triage').click(function() {
$("#dialog-modal").dialog({
position: [175, 175],
draggable: false,
height: 140,
modal: true
});
});
$.ajax(
{
type: "POST",
data: [],
dataType: "json",
contentType: "application/json; charset=utf-8",
url: "ReferralAutoTriage.asmx/RunTriageReferrals",
success: function(response) {
$("#dialog-modal").dialog('close')
},
failure: function(response) {
}
});
});
如果對話框是同步的,我需要讓異步的,這樣我就可以處理Ajax調用,同時顯示對話框,靠近我用它做了。謝謝。
謝謝,我喜歡這個主意 – Victor