On Tuesday, September 11, 2012 3:54:55 PM UTC-4, Thomas Lefort wrote:
>
> This is my code for the anchor 
>
>                                 AnchorElement anchor = 
> DOM.createAnchor().cast(); 
>                                 anchor.setHref("#EISearchResultPlace:" + 
> result); 
>                                 anchor.setTarget("_blank"); 
>                                 clickAnchor(anchor); 
>
>         public static native void clickAnchor(Element element)/*-{ 
>                 element.click(); 
>         }-*/; 
>

In both Firefox and Internet Explorer, it looks like you have to attach the 
element to the document first (Chrome doesn't seem to care).

You should also note that windows opened programmatically in this fashion 
will generally be blocked by built-in popup blockers.

-Abraham

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ThChvSXUYSkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to