タイムライン

/

アイドル・アーティストはこちらから登録


Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX/Server.php on line 685

Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX/Server.php on line 686
/** * XMLHttpRequest Wrapper * @category HTML * @package AJAX * @author Joshua Eichorn * @copyright 2005 Joshua Eichorn * @license http://www.opensource.org/licenses/lgpl-license.php LGPL */ function HTML_AJAX_HttpClient() { } HTML_AJAX_HttpClient.prototype = { request: null, _timeoutId: null, callbackComplete: true, aborted: false, init:function() { try { this.xmlhttp = new XMLHttpRequest(); } catch (e) { var XMLHTTP_IDS = new Array( 'MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP' ); var success = false; for (var i=0;i < XMLHTTP_IDS.length && !success; i++) { try { this.xmlhttp = new ActiveXObject(XMLHTTP_IDS[i]); success = true; } catch (e) {} } if (!success) { try{ this.xmlhttp = new HTML_AJAX_IframeXHR(); this.request.iframe = true; } catch(e) { throw new Error('Unable to create XMLHttpRequest.'); } } } }, callInProgress: function() { switch ( this.xmlhttp.readyState ) { case 1: case 2: case 3: return true; break; default: return false; break; } }, makeRequest: function() { if (!this.xmlhttp) { this.init(); } try { if (this.request.Open) { this.request.Open(); } else if (HTML_AJAX.Open) { HTML_AJAX.Open(this.request); } if (this.request.multipart) { if (document.all) { this.iframe = true; } else { this.xmlhttp.multipart = true; } } var self = this; this.xmlhttp.open(this.request.requestType,this.request.completeUrl(),this.request.isAsync); if (this.request.customHeaders) { for (var i in this.request.customHeaders) { this.xmlhttp.setRequestHeader(i, this.request.customHeaders[i]); } } if (this.request.customHeaders && !this.request.customHeaders['Content-Type']) { var content = this.request.getContentType(); var charsetIndex = content.indexOf('; charset=UTF-8'); if (charsetIndex == -1) { content += '; charset=UTF-8'; } this.xmlhttp.setRequestHeader('Content-Type', content); } if (this.request.isAsync) { if (this.request.callback) { this.callbackComplete = false; } this.xmlhttp.onreadystatechange = function() { self._readyStateChangeCallback(); } } else { this.xmlhttp.onreadystatechange = function() {} } var payload = this.request.getSerializedPayload(); if (payload) { this.xmlhttp.setRequestHeader('Content-Length', payload.length); } this.xmlhttp.send(payload); if (!this.request.isAsync) { if ( this.xmlhttp.status == 200 ) { HTML_AJAX.requestComplete(this.request); if (this.request.Load) { this.request.Load(); } else if (HTML_AJAX.Load) { HTML_AJAX.Load(this.request); } return this._decodeResponse(); } else { var e = new Error('['+this.xmlhttp.status +'] '+this.xmlhttp.statusText); e.headers = this.xmlhttp.getAllResponseHeaders(); this._handleError(e); } } else { var self = this; this._timeoutId = window.setTimeout(function() { self.abort(true); },this.request.timeout); } } catch (e) { this._handleError(e); } }, abort: function (automatic) { if (this.callInProgress()) { this.aborted = true; this.xmlhttp.abort(); if (automatic) { HTML_AJAX.requestComplete(this.request); this._handleError(new Error('Request Timed Out: time out was '+this.request.timeout+'ms')); } } }, _readyStateChangeCallback:function() { try { switch(this.xmlhttp.readyState) { case 1: break; case 2: if (this.request.Send) { this.request.Send(); } else if (HTML_AJAX.Send) { HTML_AJAX.Send(this.request); } break; case 3: if (this.request.Progress) { this.request.Progress(); } else if (HTML_AJAX.Progress ) { HTML_AJAX.Progress(this.request); } break; case 4: window.clearTimeout(this._timeoutId); if (this.aborted) { if (this.request.Load) { this.request.Load(); } else if (HTML_AJAX.Load) { HTML_AJAX.Load(this.request); } } else if (this.xmlhttp.status == 200) { if (this.request.Load) { this.request.Load(); } else if (HTML_AJAX.Load ) { HTML_AJAX.Load(this.request); } var response = this._decodeResponse(); if (this.request.callback) { this.request.callback(response); this.callbackComplete = true; } } else { var e = new Error('HTTP Error Making Request: ['+this.xmlhttp.status+'] '+this.xmlhttp.statusText); this._handleError(e); } HTML_AJAX.requestComplete(this.request); break; } } catch (e) { this._handleError(e); } }, _decodeResponse: function() { var content = null; try { content = this.xmlhttp.getResponseHeader('X-Content-Type'); } catch(e) {} if(!content || content == null) { content = this.xmlhttp.getResponseHeader('Content-Type'); } if(content.indexOf(';') != -1) { content = content.substring(0, content.indexOf(';')); } if(content == 'application/xml' || content == 'text/xml') { return this.xmlhttp.responseXML; } var unserializer = HTML_AJAX.serializerForEncoding(content); return unserializer.unserialize(this.xmlhttp.responseText); }, _handleError: function(e) { HTML_AJAX.requestComplete(this.request,e); if (this.request.onError) { this.request.onError(e); } else if (HTML_AJAX.onError) { HTML_AJAX.onError(e,this.request); } else { throw e; } } }
Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX/Server.php on line 685

Warning: Cannot modify header information - headers already sent by (output started at /home/idol-scheduler/www/nageco/post/view.inc:57) in /home/idol-scheduler/pear/php/HTML/AJAX/Server.php on line 686