Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json.onError #3

Open
schloerke opened this issue Mar 7, 2012 · 0 comments
Open

json.onError #3

schloerke opened this issue Mar 7, 2012 · 0 comments

Comments

@schloerke
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant