Xhr Object when load() failed

Hello

$$(form).load(url).then(function(){...}).fail(function(xhr){});

On this construct I’ll get a fail xhr object but how to get readable text from this object?
(in strict mode)

Thankyou for your help

Hello @Michael,

You can reference the text received as a response via the appropriately named responseText property, e.g.:

$$(form).load(url).then(() => { ... }).fail(xhr => console.log(xhr.responseText));

Thank you Dzmitry, but then I’ll get

undefined :frowning:

LG