handling error 500 in dhx.ajax().sync().post(...)

hi,

handling error 500 in dhx.ajax().sync().post(…)

How can I handle error 500 in dhx.ajax().sync().post(url,args,functionOk) ?

I have tried with dhx.ajax().sync().post(url,args,[functionOk,functionErr]) but it runs both of two functions when response is ok, and none of them when it is 500.

I have tried with
functions.success=function{}
functions.error=function{}
dhx.ajax().sync().post(url,args,functions)
but it doesn´t run none of them neither it’s ok or it’s bad.

I have seen in touchui_debug.js
var method = (call[i].success||call[i]);
if (x.status >= 400)
method = call[i].error;

Then, how I define call[i].error?

Thanks

javi.

Currently it works only with dev. version ( will be pushed in stable branch )

dhx.ajax().sync().post(url,args,{ success:function(){ ... }, error:function(){ ... } })