youmoula / jcrop

Automatically exported from code.google.com/p/jcrop
0 stars 0 forks source link

Chrome/webkit - binding jcrop via load event only works the first time #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Chrome/webkit is more particular about the load event per this chrome bug:

http://code.google.com/p/chromium/issues/detail?id=7731#c12

The upshot of this is one needs to either force the browser to refetch the 
image (one way to test this is append via JS to the image url: url + '?' + new 
Date().getTime()) or create a new image instance (see chrome bug above).

Is this a jcrop bug, a jQuery bug, or something that isn't really a bug and we 
just have to work around?

Original issue reported on code.google.com by cymen...@gmail.com on 9 Nov 2011 at 10:00

GoogleCodeExporter commented 8 years ago
See issue #62 for more details: 
http://code.google.com/p/jcrop/issues/detail?id=62

My apologies -- I should have created a new bug right away.

Original comment by cymen...@gmail.com on 9 Nov 2011 at 10:01

GoogleCodeExporter commented 8 years ago
Blog post with hack to work around this issue:

http://blog.cymen.org/2011/11/10/jquery-jcrop-plugin-chromewebkit-fails-to-initi
alize-after-the-first-attempt/

Original comment by cymen...@gmail.com on 10 Nov 2011 at 4:38