diff options
author | wei <> | 2006-09-16 05:21:24 +0000 |
---|---|---|
committer | wei <> | 2006-09-16 05:21:24 +0000 |
commit | b767e82ec7bb04e747961e7ecee0e288fde719f0 (patch) | |
tree | fef85418f66b9cf69aecd6a30f43f39545f2f249 /framework/Web/Javascripts/prado | |
parent | 2d8fc0f1818aa896bebedf8cbeedffb17d048600 (diff) |
update ajax js files.
Diffstat (limited to 'framework/Web/Javascripts/prado')
-rw-r--r-- | framework/Web/Javascripts/prado/ajax3.js | 8 | ||||
-rw-r--r-- | framework/Web/Javascripts/prado/inlineeditor.js | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/framework/Web/Javascripts/prado/ajax3.js b/framework/Web/Javascripts/prado/ajax3.js index 5374387d..3b6a1d31 100644 --- a/framework/Web/Javascripts/prado/ajax3.js +++ b/framework/Web/Javascripts/prado/ajax3.js @@ -180,12 +180,14 @@ Object.extend(Prado.CallbackRequest, if(transport.status < 500)
{
var msg = 'HTTP '+transport.status+" with response : \n";
- msg += transport.responseText + "\n";
- msg += "Data : \n"+inspect(data)+"\n";
- msg += "Actions : \n";
+ if(transport.responseText.trim().length >0)
+ msg += transport.responseText + "\n";
+ if(typeof(data)!="undefined" && data != null)
+ msg += "Data : \n"+inspect(data)+"\n";
data = request.getHeaderData(Prado.CallbackRequest.ACTION_HEADER);
if(data && data.length > 0)
{
+ msg += "Actions : \n";
data.each(function(action)
{
msg += inspect(action)+"\n";
diff --git a/framework/Web/Javascripts/prado/inlineeditor.js b/framework/Web/Javascripts/prado/inlineeditor.js index 24cc9b70..14f4b73c 100644 --- a/framework/Web/Javascripts/prado/inlineeditor.js +++ b/framework/Web/Javascripts/prado/inlineeditor.js @@ -79,7 +79,7 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( options = new Array('__InlineEditor_loadExternalText__', this.getText());
request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
request.setCausesValidation(false);
- request.setParameter(options);
+ request.setCallbackParameter(options);
request.options.onSuccess = this.onloadExternalTextSuccess.bind(this);
request.options.onFailure = this.onloadExternalTextFailure.bind(this);
request.dispatch();
@@ -171,7 +171,7 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( onTextChanged : function(text)
{
request = new Prado.CallbackRequest(this.options.EventTarget, this.options);
- request.setParameter(text);
+ request.setCallbackParameter(text);
request.options.onSuccess = this.onTextChangedSuccess.bind(this);
request.options.onFailure = this.onTextChangedFailure.bind(this);
if(request.dispatch())
|