トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

OA_Chk のバックアップソース(No.11)

#html{{
<script type="text/javascript"><!--
// 非同期オブジェクトの定義
httpRequest = false;
if(window.XMLHttpRequest) {
	// Firefox, Opera, & etc.
	httpRequest = new XMLHttpRequest();
	// IE7でもXMLHttpRequestオブジェクトはあるが、
	// overrideMimeTypeメソッドは無い。
	if (navigator.appName.indexOf("Explorer", 0) == -1) {
		httpRequest.overrideMimeType('text/xml');
	}
} else if(window.ActiveXObject) {
	// IE
	try {
		httpRequest = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		httpRequest = new ActiveXObject('Microsoft.XMLHTTP');
	}
}
// 検索リクエストを実行
var programExtract = '/OA_Chk.php';
httpRequest.abort(); // 再呼び出しを可能にする為
httpRequest.open('GET', programExtract, true);
httpRequest.onreadystatechange = function() {
	if(httpRequest.readyState == 4) {
		if(httpRequest.status == 200) {
			$("OA_Stat").innerHTML = httpRequest.responseText;
		}
	}
}
httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
httpRequest.send();
// -->
</script>
<div id="OA_Stat"></div>
}}