new window on button click shows "about:blank" url first then takes me to the url desired.
I am simply using a button in my entry point class as shown below and want to open a url in new window.
When I click on the button a new window opens up but before that window takes me to the url I want to, it shows me "about:blank" in the url part in that window for a second then opens that url.
I am not able to get why that is happening.It happens with any url I want to open and in all browsers.
Please suggest.
.......code segment start...
...
Button button = new Button("Click Me!");
button.addClickHandler(new MyClickHandler());
...
}
/**
* create a custom click handler which will call
* onClick method when button is clicked.
*/
private class MyClickHandler implements ClickHandler {
@Override
public void onClick(ClickEvent event) {
String url = "http://www.google.com";
Window.open(
url,
"_blank", "");
}
}
...
....code segment ends......
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home