$.ajax({
type : "post",
url : "/Ajax_Area.asp",
data : "aaa=" + aaa,
dataType : "dataType",
complete: function( res, status ) {
if ( status === "success" || status === "notmodified" ) {
$("#AreaSelect").html(res.responseText);
}else{
alert(status);
}
}
});
dataType : String
xml, html, json, jsonp, script, text
script : 콜백 호출보다 우선하여 스크립트 구문으로 처리
contentType : String
요청에 지시되는 contentType 기본값은 "application/x-www-form-urlencoded"
beforeSend : Function
요청 전송이전 호출 함수
async : Boolean
true ; 비동기 호출
false : 동기 호출
processData : Boolean
false시 URL 인코딩 형태로 처리되어 전달되는 데이터를 금지
'Javascript > jQuery' 카테고리의 다른 글
복수 form 내에서 input 태그 확인 (0) | 2011.04.12 |
---|---|
n번째 요소 찾기 (0) | 2011.03.29 |
다른 라이브러리와 jQuery의 $가 충돌할때 (0) | 2011.02.27 |
ProgressBar 예제 (0) | 2011.02.23 |
selectbox (0) | 2011.02.23 |