Groups
Groups
Sign in
Groups
Groups
GWT Users
Conversations
About
Send feedback
Help
Image component refresh not working under Firefox 2.0.0.9 works under IE
33 views
Skip to first unread message
dbexternal
unread,
Nov 25, 2007, 8:17:44 PM
11/25/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Greetings:
I'm attempting to refresh an image via a Button, per the below code.
Works fine for IE, just not Firefox. Any suggestions? Thanks!
captchaPanel = new VerticalPanel();
captchaInputPanel = new HorizontalPanel();
captchaText = new TextBox();
captchaInputPanel.add(captchaText);
captchaImage = new Image(GWT.getModuleBaseURL() + "captcha");
captchaInputPanel.add(captchaImage);
Button refreshImage = new Button("Refresh Image", new ClickListener()
{
public void onClick(Widget sender) {
captchaInputPanel.remove(captchaImage);
captchaImage = new Image(GWT.getModuleBaseURL() + "captcha");
captchaInputPanel.add(captchaImage);
}
});
captchaPanel.add(captchaInputPanel);
captchaPanel.add(refreshImage);
Peter Blazejewicz
unread,
Nov 25, 2007, 9:03:30 PM
11/25/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
hi,
try to add random param to your image url to bypass browser cache,
String rand = "?rand="+System.currentTimeMillis();
regards,
Peter
dbexternal
unread,
Nov 25, 2007, 9:14:39 PM
11/25/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
That did it. Thanks Peter!
On Nov 25, 9:03 pm, Peter Blazejewicz <
peter.blazejew...@gmail.com
>
wrote:
Reply all
Reply to author
Forward
0 new messages