IE works fine and displays images.
However, if you use a non-IE browser (Firefox, Safari), it stops at the 止まりrequest.responseType=rarraybuffer; ; section, and the rest of the sentence does not work.
If you comment out this part, you will be able to move.
In the case of Firefox, it was mentioned that the responseType must be specified after the open, but it still doesn't seem to work.
What's the problem?
Firefox 11 now has an error when using responseType in a synchronization request (request with the third argument
Removed support for using XMLHttpRequest responseType and withCredentials attributes when executing synchronization requests.Attempting to use the property results in an NS_ERROR_DOM_INVALID_ACCESS_ERR exception.This change was proposed to W3C for standardization.
Try changing the third argument of
request.open to true.
© 2023 OneMinuteCode. All rights reserved.