?? PHP ?? ????: XMLHttpRequest ??
1. XMLHttpRequest ?? ??
1. XMLHttpRequest? AJAX? ?????.
2 . XMLHttpRequest ??
XMLHttpRequest ??? ?? ?? ?????? ?????(IE5 ? IE6? ActiveXObject? ?????).
XMLHttpRequest? ??????? ??? ???? ???? ? ?????. ?? ?? ???? ?? ???? ??? ????? ??? ????? ? ??? ?????.
3. XMLHttpRequest ?? ??? ?? ??:
?? ?? ????(IE7+, Firefox, Chrome, Safari ? Opera)?? XMLHttpRequest ??? ???? ????. XMLHttpRequest ??.
XMLHttpRequest ?? ?? ??:
variable=new XMLHttpRequest();
?? ??? Internet Explorer(IE5 ? IE6)? ActiveX ??? ?????.
variable=new ActiveXObject("Microsoft.XMLHTTP");
IE5, IE6? ??? ?? ?? ????? ?? ?? ????? XMLHttpRequest ??? ????? ?????. ???? ?? XMLHttpRequest ??? ????. ???? ?? ?? ActiveXObject? ?????:
var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }