은 내가 사기꾼이고 다음을 수행 같아요
$("#ProgressDialog").dialog({
autoOpen: false,
draggable: false,
modal: true,
resizable: false,
title: "Loading",
closeOnEscape: false//,
// open: function() { $(".ui-dialog-titlebar-close").hide(); } // Hide close button
});
$("form").live("submit", function (event) {
event.preventDefault();
var form = $(this);
$("#ProgressDialog").dialog("open");
$.ajax({
url: form.attr('action'),
type: "POST",
data: form.serialize(),//USE THIS to autoserialize!
success: function (data) {
$("#dialog").dialog({height:0});
},
error: function (jqXhr, textStatus, errorThrown) {
alert("Error '" + jqXhr.status + "' (textStatus: '" + textStatus + "', errorThrown: '" + errorThrown + "')");
},
complete: function() {
$("#ProgressDialog").dialog("close");
}
});
});
});
<div id="ProgressDialog" style="text-align: center; padding: 50px;">
<img src="@Url.Content("~/Content/ajax-loader.gif")" width="128" height="15" alt="Loading" />
</div>
어떤 하나 개의 매개 변수보다이 방법에 대한? –
각 매개 변수에 대해 MVC는 모든 양식 데이터를 매개 변수 자체 (단순 유형 인 경우) 또는 해당 매개 변수의 모든 등록 정보 (복합 유형 인 경우)에 바인딩하려고 시도합니다. 두 개의 매개 변수가 있고 각 매개 변수에 First 속성이 있으면 둘 다 서버에 게시 된 "First"키에 지정된 값을 가져와야합니다. 하나의 복합 유형에만 바인딩하려는 경우 사용할 수있는 특정 명명 구문이 있습니다. – Tejs
FF로 작동하는 이상한 결과가 있지만 IE의 메소드 매개 변수 뒤에있는 IE는 모든 필드가 null로 초기화 된 객체를 가져옵니다. –