django-dajaxice
django-dajaxice copied to clipboard
XMLHttpRequest emits onreadystatechange but not onload event
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
This looks like a duplicate of #90.
Try this in your settings file:
DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False