AJAX
-
Ajax library 만들어서 사용하기.(샘플)Programming/AJAX 2011. 3. 2. 16:14
간단하게 라이브러리 만들어서 호출하는 식으로 사용합니다. test.html myAJAXlib.js //브라우저 종류 판별을 이용한 방법 /* function getXMLHTTPRequest(){ var req = false; if(window.XMLHTTPRequest){ req = new XMLHTTPRequest(); }else{ if(window.ActiveXObject){ try{ req = new ActiveXObject("Msxml2.XMLHTTP"); }catch(err){ try{ req = new ActiveXObject("Microsoft.XMLHTTP"); }catch(err){ req = false; } } } } return req; } */ // 브라우저에 무관하게 객체 생성 f..
-
AJAX 시작하기.Programming/AJAX 2010. 9. 29. 14:47
AJAX:Getting Started 이 글은 당신이 AJAX 기본을 헤쳐가는 것을 이끌고, 두 가지 간단한 훈련용 예제를 제공합니다. 목차[숨기기] 1 AJAX란? 2 1단계 – say "Please!" or How to Make an HTTP Request 3 2단계 – "There you go!" or Handling the Server Response 4 3단계 – "All together now!" - A Simple Example 5 4단계 – "The X-Files" or Working with the XML Response AJAX란? AJAX (Asynchronous JavaScript and XML)는 강력한 브라우저 특징 두가지를 가리키는 신조어입니다. 개발된지는 몇 년 됐지만 많은 ..