Dear group,
I created a small GWT test project with just one component on the
start page. This component contains an image.
Into this image, I load two different GIF images, both 600x340 pixels
large, no alpha channel. To load one specific gif to the image, I can
click on four buttons:
Button 1 loads image A by setUrl() into the image.
Button 2 loads image B by setUrl() into the image.
Button 3 loads image A by setResource() into the image.
Button 4 loads image B by setResource() into the image.
The two images served by URL are in a subfolder of the war folder, the
two copies loaded as ImageResource are served as ClientBundle.
In Firefox 3.6 and Safari 5, both methods work fine. In IE 8, a
JavaScriptException (Invalid Argument, number: -
2147024809) is thrown
when loading image B by hitting button 4. Also, no image is shown
(image switches to white/blank). After switching IE 8 to compatibility
mode, the page works fine again and button 4 operates like in other
browsers.
It seems that while using setResource() in IE 8 works in principle
(image A is loaded by button 3), it fails with my specific GIF. Also,
IE 8 is able to render the image (image B is loaded by button 2).
Image B, which fails loading, can be accessed through
http://www.dotvoting.org/images/DotVoteResult.gif
For image A, I used a GIF of same dimension drawn from scratch.
Does anybody has an idea what is wrong with image A and what is
causing the exception?
Thanks
Sven