DVL icon indicating copy to clipboard operation
DVL copied to clipboard

json.onError

Open schloerke opened this issue 13 years ago • 0 comments

In dvl.ajax.requester['normal' || 'cache'], can you replace the onError callback to call with

normal:
  //...
  complete(xhr.responseText ? textStatus, null)    // complete(textStatus, null)
cache:
  //...
  cb(xhr.responseText ? textStatus, null);               // cb(textStatus, null)

It allows for response body capture, even though it's an error.

Best, Barret

schloerke avatar Mar 07 '12 22:03 schloerke