fireEvent -> Oh I see, makes perfect sense! Thanks.
click -> I can't get it to work unfortunately, the object has no
'click' method, both using ButtonElement cast and JSNI
element.click(). I feel a bit useless there, if you have a little more
patience to detail your solution? Thanks.
tab -> I agree the browsers settings and behavior will define the
behavior. However in my case if I click on an anchor with teh _blank
target, it opens in a new tab. I am trying to reproduce the same
programatically but instead of getting a new tab I get a new window
with no navigation butttons or else, just the URL bar.
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();
}-*/;
> --
> 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/-/mjR6F7jYTIYJ.