| ■XMLHttpRequestオブジェクト生成 |
function createHttpRequest() { var xmlhttp = null;
if(window.ActiveXObject){ try { // MSXML2以降用 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { // 旧MSXML用 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) {
} } } else if(window.XMLHttpRequest){ // Win Mac Linux m1,f1,o8 Mac s1 Linux k3用 xmlhttp = new XMLHttpRequest(); } else {
} if (xmlhttp == null) { alert("Can not create an XMLHTTPRequest instance"); }
return xmlhttp; }
|
|
|