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);