hi to all,

In my web application, I am creating a object of FileUpload class, and
adding a button on the web page, when i click on the button, it takes
the file name of the browsed file by using getFilename() method of
FileUpload class. If this file is an image then I create a image
object and pass this file name in the image object like that

FileUpload ff = new FileUpload();
.........
.........

String s = ff.getFilename();
Image img = new Image(s);
panel.add(img);
.........
........

Then i add this image object on the panel. Now if i run this program
on the IE6.0 it runs successfully i.e. image is displayed on the
panel. But if i run this program on the IE 7.0, the image is not
displayed on the panel. When i alerts this Image object in the alert
dialog box o IE 7.0 this displays:

Window.alert(img);

<IMG class=gwt-Image style="WIDTH: 200px; HEIGHT: 200px" src="c:\users
\3709001.jpg" _eventBits="229501" _pendingSrc="c:\users\3709001.jpg">

But when i run this on the IE 6.0 this alert displays:

<IMG class=gwt-Image style="WIDTH: 200px; HEIGHT: 200px" src="c:\users
\3709001.jpg" _eventBits="229501" _pendingSrc="null">

means _pendingSrc is null on the IE 6.0 but pendingSrc is the same as
src value in IE 7.0.

Please tell me the solution that how could i displayed image on IE7.0
by using gwt??


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to