104
rated 0 times
[
106]
[
2]
/ answers: 1 / hits: 26845
/ 13 Years ago, sat, october 15, 2011, 12:00:00
How would I be able to override the XMLHttpRequest.open()
method and then catch and alter it's arguments?
I've already tried the proxy method but it didn't work, although removing the open over-rid when XMLHttpRequest()
was called:
(function() {
var proxied = window.XMLHttpRequest.open;
window.XMLHttpRequest.open = function() {
$('.log').html(arguments[0]);
return proxied.apply(this, arguments);
};
})();
More From » ajax