paper-datatable icon indicating copy to clipboard operation
paper-datatable copied to clipboard

ajax fail

Open maxwowpow opened this issue 10 years ago • 0 comments

http://david-mulder.github.io/paper-datatable/components/paper-datatable/demo/paper-datatable-card/

When data/request is ok, resolve(data) renders the table, but when there is a problem with request what should reject() do? I'm using $.Deferred and returning the error string from the error method does nothing. Can we stop fetching and handle error message?

$.ajax(...).then(function(data){return data.mydata}, function(err){return err.text})

maxwowpow avatar Jan 21 '16 19:01 maxwowpow