django-dajaxice icon indicating copy to clipboard operation
django-dajaxice copied to clipboard

XMLHttpRequest emits onreadystatechange but not onload event

Open arthursw opened this issue 10 years ago • 1 comments

Dajaxice modifies the XMLHttpRequest object, which makes it impossible to reach the onload event when requesting an arraybuffer.

I managed to save the original XMLHttpRequest object into a variable (for example window.OriginalXmlHttpRequest = XmlHttpRequest) before loading dajaxice, and then use my variable to de the request.

http://stackoverflow.com/questions/27103875/xmlhttprequest-emits-onreadystatechange-but-not-onload-event-using-dajaxice

arthursw avatar Nov 26 '14 16:11 arthursw

This looks like a duplicate of #90.

Try this in your settings file:

DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False

nmgeek avatar Sep 12 '15 02:09 nmgeek