タイムライン

/

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


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
/** * Class that contains everything needed to make a request * This includes: * The url were calling * If were calling a remote method, the class and method name * The payload, unserialized * The timeout for async calls * The callback method * Optional event handlers: onError, Load, Send * A serializer instance * * @category HTML * @package AJAX * @author Joshua Eichorn * @copyright 2005 Joshua Eichorn * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * * See Main.js for author/license details */ function HTML_AJAX_Request(serializer) { this.serializer = serializer; } HTML_AJAX_Request.prototype = { serializer: null, isAsync: false, requestType: 'POST', requestUrl: '', className: null, methodName: null, timeout: 20000, args: null, callback: null, queue: 'default', priority: 0, customHeaders: {'X-Requested-With': 'XMLHttpRequest', 'X-Ajax-Engine': 'HTML_AJAX/0.5.6'}, iframe: false, grab: false, multipart: false, phpCallback: false, /** * Add an argument for the remote method * @param string argument name * @param mixed value * @return void * @throws Error code 1004 */ addArg: function(name, value) { if ( !this.args ) { this.args = []; } if (!/[^a-zA-Z_0-9]/.test(name) ) { this.args[name] = value; } else { throw new Error('Invalid parameter name ('+name+')'); } }, /** * Get the payload in a serialized manner */ getSerializedPayload: function() { return this.serializer.serialize(this.args); }, /** * Get the content type */ getContentType: function() { return this.serializer.contentType; }, /** * Get the complete url, adding in any needed get params for rpc */ completeUrl: function() { if (this.className || this.methodName) { this.addGet('c', this.className); this.addGet('m', this.methodName); } if (this.phpCallback) { if (HTML_AJAX_Util.getType(this.phpCallback) == 'array') { this.phpCallback = this.phpCallback.join('.'); } this.addGet('cb', this.phpCallback); } if (this.multipart) { this.addGet('multipart', '1'); } return this.requestUrl; }, /** * Compare to another request by priority */ compareTo: function(other) { if (this.priority == other.priority) { return 0; } return (this.priority > other.priority ? 1 : -1); }, /** * Add a GET argument */ addGet: function(name, value) { var url = new String(this.requestUrl); url += (url.indexOf('?') < 0 ? '?' : '&') + escape(name) + '=' + escape(value); this.requestUrl = url; } }
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