Talk:Upgrading from xajax 0.2 to xajax 0.5






Talk:Upgrading from xajax 0.2 to xajax 0.5

Some things are not exactly right:

  • xajax.callback.global.onRequest does not exactly the same as xajax.loadingFunction, use xajax.callback.global.onResponseDelay to mimic the old loadingFunction behavior with the delay (for example you don't need to show a "wait... loading" message when the request only takes 1 second).
  • xajax.callback.global.onComplete does not exactly the same as xajax.doneLoadingFunction, it is executed after the response is processed, not immediately after the response is received. Use xajax.callback.global.beforeResponseProcessing if you want the old behavior of doneLoadingFunction.

Related forum topics: