Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately, using the Image() object with the crossOrigin property set to "Anonymous" still caused IE to taint the canvas once the image was drawn onto it.</p> <p>To get around this, I did the following:</p> <ol> <li><p>I created a little script on my server that accepts a url, then calls file_get_contents() using the url given to it. To prevent misuse of this script, I added in a list of "acceptable" domains, as well as tailored the resulting URL to only point to things it should be requesting for. This lets me make the requests locally, which means that I can use the XMLHttpRequest object instead of the XDomainRequest object. (which also opens the door for supporting IE7 ).</p></li> <li><p>Since IE does not support atob, I used the base64 conversion script found here: <a href="https://stackoverflow.com/questions/246801/how-can-you-encode-to-base64-using-javascript">How can you encode a string to Base64 in JavaScript?</a> I commented out <code>input = Base64._utf8_encode(input);</code> in the <code>encode</code> function, as the data was binary, and not an actual string of characters.</p></li> </ol> <p>This solution is a bit of a "last resort". It works, however it is incredibly slow (takes 3 minutes instead of the usual 3 seconds). The worst part of it all was the need to add in a timer to give IE a chance to render the custom dialog box and its progress bar properly. The timer forces IE to pause a moment before making the next request. This is... rather odd considering that I have it set to make the request asynchronously.</p> <p>This is the best I could come up with for now. If anyone else has a better way of getting the job done, feel free to post your answers.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload