Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2005-08-20 17:07:48
Size: 451
Editor: 211
Comment: in altlang
Revision 6 as of 2011-08-16 14:38:41
Size: 967
Editor: 211
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[XML] [HTTP] Request. 본 기술을 이용하는것을 통틀어 [AJAX]라고도 한다. [[XML]] [[HTTP]] Request. JavaScript에서 사용됨. 본 기술을 이용하는것을 통틀어 [[AJAX]]라고도 한다.
Line 3: Line 3:
http://jibbering.com/2002/4/httprequest.html
http://jpspan.sourceforge.net/wiki/doku.php?id=javascript:xmlhttprequest
 * http://jibbering.com/2002/4/httprequest.html
 * http://jpspan.sourceforge.net/wiki/doku.php?id=javascript:xmlhttprequest
Line 7: Line 7:
 * [http://www.likejazz.com/29604.html XMLHttpRequest is becoming more and more popular]  * [[http://www.likejazz.com/29604.html|XMLHttpRequest is becoming more and more popular]]
Line 16: Line 16:

IE7 부터는 Firefox,Safari와 같은 Native Object로 구현.
 * http://msdn.microsoft.com/workshop/author/dhtml/overview/aboutxmlhttp.asp
{{{
var xmlHttp = null;
if (window.XMLHttpRequest) {
  // If IE7, Mozilla, Safari, and so on: Use native object
  xmlHttp = new XMLHttpRequest();
}
else
{
  if (window.ActiveXObject) {
     // ...otherwise, use the ActiveX control for IE5.x and IE6
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
}
}}}

XML HTTP Request. JavaScript에서 사용됨. 본 기술을 이용하는것을 통틀어 AJAX라고도 한다.

관련포스트

JavaScript sample

req = new XMLHttpRequest();
req.open("GET", url, true);
req.onreadystatechange = callback;
...

IE7 부터는 Firefox,Safari와 같은 Native Object로 구현.

var xmlHttp = null;
if (window.XMLHttpRequest) {
  // If IE7, Mozilla, Safari, and so on: Use native object
  xmlHttp = new XMLHttpRequest();
}
else
{
  if (window.ActiveXObject) {
     // ...otherwise, use the ActiveX control for IE5.x and IE6
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
}

XMLHTTPRequest (last edited 2011-08-16 14:39:27 by 211)

web biohackers.net