Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Image widget and IE
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eduard Dudar  
View profile  
 More options Sep 13 2007, 5:36 am
From: Eduard Dudar <Eduard.Du...@gmail.com>
Date: Thu, 13 Sep 2007 02:36:42 -0700
Local: Thurs, Sep 13 2007 5:36 am
Subject: Image widget and IE
Hi GWT community!

I have a trouble with loading images under IE browser. Sources for
images are existent and images are valid, but IE shows only empty
squares with colored figures.

I've intalled ID dev toolbar and drill down into HTML code generated
by GWT js.
Here is what I've seen in code:
<IMG class="gwt-Image" __eventBits="229501" __widgetID="6"
__pendingSrc="http://xxx.png" />

Searching across the google gave me nothing in topic of
"__pendingSrc".

But! When I manully added "src" attribute to <IMG> tag I received:
<IMG class="gwt-Image" src="http://xxx.png" __eventBits="229501"
__widgetID="10" __pendingSrc="http://xxx.png" /> and images correctly
shows on screen.

In Java-GWT code I use only Image widget.

Could pleaswe anyone say what going on here?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reinier Zwitserloot  
View profile  
 More options Sep 13 2007, 6:24 am
From: Reinier Zwitserloot <reini...@gmail.com>
Date: Thu, 13 Sep 2007 03:24:58 -0700
Local: Thurs, Sep 13 2007 6:24 am
Subject: Re: Image widget and IE
IE is buggy. __pendingSrc is a GWT-specific workaround.

Specifically,

if you create 10 image objects, all pointing to the same image, the
proper behaviour for the browser is to download this image ONCE.

IE downloads it 10 times. This is, in a word, BAD.

GWT works around it by not actually initializing images (=setting up
the .src property) until any other images with the same url have
completed loading. (IE will grab an image from cache if it has been
fully loaded already).

GWT keeps track of the src it's trying to become with __pendingSrc.

If you're having trouble loading the image you appear to be doing
something strange. Possibly the first load somehow gets an error
message, but subsequent loads don't. At any rate, your bug is
elsewhere.

On Sep 13, 10:36 am, Eduard Dudar <Eduard.Du...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aceinfo06@gmail.com  
View profile  
 More options Sep 14 2007, 9:40 am
From: "aceinf...@gmail.com" <sald...@gmail.com>
Date: Fri, 14 Sep 2007 13:40:52 -0000
Local: Fri, Sep 14 2007 9:40 am
Subject: Re: Image widget and IE
Eduard,

I have had the same problem with loading Images in my code. Try
searching the forums or issue tracker for "__targetSrc", as this is
the name of the attribute set by my environment. I moved on by
creating a wrapper method for Image that uses .setURL(path) and
DOM.setElementAttribute(Image.getElement(), "src", path); Based on my
experience with the ImageBundle implementation, I wouldn't go hunting
around your code for a bug thats causing this behavior. Good luck

Dav

On Sep 13, 6:24 am, Reinier Zwitserloot <reini...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »