2006년 1월 8일 일요일

XMLHTTP

XMLHTTP is a set of APIs that can be used by JavaScript, JScript, VBScript and other web browser scripting languages to transfer and manipulate XML data to and from a web server using HTTP, establishing an independent connection channel between Client-Side and Server-Side.

출처 : http://en.wikipedia.org/wiki/XMLHTTP


XMLHttpRequest Object는 XML data를 Server-side에 HTTP로 전송하는데 사용됩니다.

1. XMLHttpRequest Object의 생성
XMLHttpRequest의 경우 IE와 다른 브라우저가 다르기 때문에 구분을 해줘야 합니다.


2. XMLHttpRequest의 메소드들
지원 메소드들은 브라우져마다 다르며, 다음의 메소드는 공통적으로 제공되는 메소드들입니다.


3. XMLHttpRequest의 Property들
method들 처럼 일반적으로 제공되는 특징들이며 read-only입니다.


4. 예제
degraeve.com의 Simple Ajax Example입니다. 폼으로 입력받은 Data를 Server에 전송한후 response string을 다시 받아서 출력합니다.

SimpleAjaxExam.html


simple-ajax-example.php



5. 예제 결과

http://okjungsoo.woweb.net/sample/SimpleAjaxExam.html

출처 :
1. Wikipedia
- http://en.wikipedia.org/wiki/XMLHTTP
2. Dynamic HTML and XML: The XMLHttpRequest Object
- http://developer.apple.com/internet/webcontent/xmlhttpreq.html
3. Running XMLHttpRequest with Java
- http://www.josesandoval.com/2005/03/running-xmlhttprequest-with-java.html
4. Simple Ajax Example
- http://www.degraeve.com/reference/simple-ajax-example.php?word=word
5. fiftyfoureleven.com의 예제들
- http://www.fiftyfoureleven.com/resources/programming/xmlhttprequest/examples

댓글 없음:

댓글 쓰기