■ [javascript] サーバが一定時間応答しなかったら処理を打ち切る 探していたものとは違うものだけど、一応メモ。 IT trends By 渡辺翔太 » Blog Archive » Ajaxでタイムアウトを設定するコード ネタ元: codejanitor » AJAX Timeouts with Prototype インデントが崩れているので直したものを貼っておきますね。 function callInProgress (xmlhttp) { switch (xmlhttp.readyState) { case 1: case 2: case 3: return true; break; // Case 4 and 0 default: return false; break; } } function showFailureMessage(
![Route 477(2007-12-07)](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0dd2a08b2c0fff30d70543ed7fa340ebfeb5697/height=288;version=1;width=512/https%3A%2F%2Froute477.net%2Fd%2Fassets%2Fogimage.png)