You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I use this plugin for cross domain and ie9 but when I get a text/html respons the responses.html is set and not the responses.reponseText.
When I check the Ajax response the responseText is null in this case.
Looking at the XMLHTTPRequest docs, responseText is the correct property to use.
When I change:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.html = xdr.responseText;
}
to:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.responseText = xdr.responseText;
}
all works fine here.
I see in previous changes "Accommodate HTML dataType, as requested in PR 13" you added this
The text was updated successfully, but these errors were encountered:
In my project I use this plugin for cross domain and ie9 but when I get a text/html respons the responses.html is set and not the responses.reponseText.
When I check the Ajax response the responseText is null in this case.
Looking at the XMLHTTPRequest docs, responseText is the correct property to use.
When I change:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.html = xdr.responseText;
}
to:
if (userType === 'html' || /text/html/i.test(xdr.contentType)) {
responses.responseText = xdr.responseText;
}
all works fine here.
I see in previous changes "Accommodate HTML dataType, as requested in PR 13" you added this
The text was updated successfully, but these errors were encountered: