|
|
글을 다 날려서 다시 적는다. !! (2009-05-06에 날림)
Method ( 메서드 )
Property ( 프로퍼티 )
statusText
2007/03/26 15:44 원본보기
XMLHttpRequest ...
Ajax 에서 통신을 담당하고 데이터를 송수신할 수 있는 객체
Method ( 메서드 )
- abort()
- getAllResponseHeaders()
- getResponseHeader("Header Name")
- open("method","url","async","user","password")
HTTP 통신을 위한 기준을 설정한다.
Assigns method, destination URL, and other optional attributes of a pending request. MSDN 참조
Assigns method, destination URL, and other optional attributes of a pending request. MSDN 참조
- send()
- setRequestHeader("label","value")
서버로 전송할 Header Label 과 값을 정의한다.
Adds custom HTTP headers to the request. MSDN 참조
- onreadystatechange
서버의 처리 상태 변화에 따른 이벤트 발생
처리 상태 값을 readyState 프로퍼티로 제공
Sets or retrieves the event handler for asynchronous requests. MSDN 참조
- readyState
처리상태
0: open() 메서드 수행 전
1: 로딩 ( Loading) 중인 상태 ( send() 수행 전 )
2: 로딩 완료 ( 서버가 Request 를 받은 상태 )
3: 서버가 처리 중인 상태
4: 서버 처리 완료
Retrieves the current state of the request operation. MSDN 참조
- responseBody
Retrieves the response body as an array of unsigned bytes. MSDN 참조
- responseText
- responseXML
- status
서버의 처리 결과 (상태)
202: 성공
403: 접근 거부
404: 파일/ 애플리케이션이 존재 하지 않는다.
Retrieves the HTTP status code of the request. MSDN 참조
202: 성공
403: 접근 거부
404: 파일/ 애플리케이션이 존재 하지 않는다.
Retrieves the HTTP status code of the request. MSDN 참조
IE9 이상으로 브라우저를 업그레이드하거나, 크롬, 파이어폭스 등 최신 브라우저를 이용해주세요.