diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-28 13:29:43 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-11-28 13:29:43 +0100 |
commit | c8b44fd5ef83ea11513bf135ab864040ad891db6 (patch) | |
tree | 0499b58d47dd4e20128740cae93010ac37a9ee2a /framework/Web | |
parent | a4e4839d9f09d27b6f0cba92fad0231632b3a04d (diff) |
readded the ability to get a simple result from an ajax callback
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/Javascripts/source/prado/activecontrols/ajax3.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index 8839c1ae..0d306a89 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -315,7 +315,13 @@ Prado.CallbackRequest = jQuery.klass(Prado.PostBack, this.data = data; if (this.options.onSuccess) - this.options.onSuccess(this,textStatus); + { + var customData=this.extractContent(Prado.CallbackRequestManager.DATA_HEADER); + if (typeof(customData) == "string" && customData.length > 0) + customData = jQuery.parseJSON(customData); + + this.options.onSuccess(this,customData); + } var redirectUrl = this.extractContent(Prado.CallbackRequestManager.REDIRECT_HEADER); if (redirectUrl) |