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
I'm not sure of support for different browsers etc, but there them seem to override XMLHttpRequest.prototype.open and add an eventlistener to read the header etc. That would mean it doesn't have to depend on jQuery (Angular? #139)
This could also mean that we show some extended information for ajax requests, perhaps a new tab for ajax requests, which also shows the time/status, and a link to load the dataset? And perhaps a toggle to refresh automatically etc.
So instead of bindToJquery, what about something like this:
bindToXHR: function() {
var self = this;
var proxied = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
var xhr = this;
this.addEventListener("readystatechange", function(method, url) {
if (xhr.readyState == 4) {
self.handle(xhr);
}
}, false);
proxied.apply(this, Array.prototype.slice.call(arguments));
}
}
(That misses the settings object from jquery, not sure how to get that).
Based on work from symfony/symfony#8896
The text was updated successfully, but these errors were encountered:
Based on the discussion here: symfony/symfony#8896
I'm not sure of support for different browsers etc, but there them seem to override
XMLHttpRequest.prototype.open
and add an eventlistener to read the header etc. That would mean it doesn't have to depend on jQuery (Angular? #139)This could also mean that we show some extended information for ajax requests, perhaps a new tab for ajax requests, which also shows the time/status, and a link to load the dataset? And perhaps a toggle to refresh automatically etc.
So instead of bindToJquery, what about something like this:
(That misses the settings object from jquery, not sure how to get that).
Based on work from symfony/symfony#8896
The text was updated successfully, but these errors were encountered: