diff options
| author | wei <> | 2007-01-03 10:09:30 +0000 | 
|---|---|---|
| committer | wei <> | 2007-01-03 10:09:30 +0000 | 
| commit | 46484d91f49721a10b76e2c25071ad594f0b32d4 (patch) | |
| tree | de5d6c501cf099a3570f9498e12c91013b55ae3c /framework/Web/Javascripts/js/debug/ajax.js | |
| parent | c0bd74c851096574714d9f340352f81314e56a01 (diff) | |
add Prado.CallbackRequest.getRequestById(id) and Prado.CallbackRequest.dispatch(id) javascript methods.
Diffstat (limited to 'framework/Web/Javascripts/js/debug/ajax.js')
| -rw-r--r-- | framework/Web/Javascripts/js/debug/ajax.js | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/framework/Web/Javascripts/js/debug/ajax.js b/framework/Web/Javascripts/js/debug/ajax.js index 452a9ef8..c2822f10 100644 --- a/framework/Web/Javascripts/js/debug/ajax.js +++ b/framework/Web/Javascripts/js/debug/ajax.js @@ -431,6 +431,23 @@ Object.extend(Prado.CallbackRequest,  	requestQueue : [],
 +	//all request objects
 +	requests : {},
 +
 +	getRequestById : function(id)
 +	{
 +		var requests = Prado.CallbackRequest.requests;
 +		if(typeof(requests[id]) != "undefined")
 +			return requests[id];
 +	},
 +
 +	dispatch : function(id)
 +	{
 +		var requests = Prado.CallbackRequest.requests;
 +		if(typeof(requests[id]) != "undefined")
 +			requests[id].dispatch();
 +	},
 +
  	/**
  	 * Add ids of inputs element to post in the request.
  	 */
 @@ -727,6 +744,9 @@ Prado.CallbackRequest.prototype =  		this.Enabled = true;
  		this.id = id;
 +		if(typeof(id)=="string")
 +			Prado.CallbackRequest.requests[id] = this;
 +
  		this.options = Object.extend(
  		{
  			RequestTimeOut : 30000, // 30 second timeout.
  | 
