Note that there are some explanatory texts on larger screens.

plurals
  1. POcross domain security error in jQuery script
    text
    copied!<p>I have a multilingual WordPress site using WPML plugin which allows to have separate domains that point to the same WordPress install. (EN) erikbijma.com (NL) erikbijma.nl</p> <p>I'm implementing this script to make grayscale images on the fly <a href="http://webdesignerwall.com/tutorials/html5-grayscale-image-hover" rel="nofollow">http://webdesignerwall.com/tutorials/html5-grayscale-image-hover</a></p> <p>I previously tried pure CSS methods with the filter property but it slows down the site, plus it doesn't work in IE10 <a href="http://demosthenes.info/blog/540/Animating-CSS3-Image-Filters" rel="nofollow">http://demosthenes.info/blog/540/Animating-CSS3-Image-Filters</a></p> <p>I am serving images and script from the respective domain in each case (.nl and .com), so I don't understand why there's a security error.</p> <p>Error messages in IE10</p> <p>the error seems to happen here:</p> <pre><code>SCRIPT5022: SecurityError homepage.js, line 37 character 2 var imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height); </code></pre> <p>In Firefox</p> <pre><code>SecurityError: The operation is insecure. [Break On This Error] var imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height); </code></pre> <p>any help appreciated</p> <p>thanks</p> <p>If you want to make 30 dollars I posted the question here <a href="http://www.wpquestions.com/question/showChronoLoggedIn/id/7830" rel="nofollow">http://www.wpquestions.com/question/showChronoLoggedIn/id/7830</a></p>
 

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