Re: Open new tab in dev mode with window.open

2012-09-11 Thread Abraham Lin
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); >

Re: Open new tab in dev mode with window.open

2012-09-11 Thread Thomas Lefort
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 agr

Re: Open new tab in dev mode with window.open

2012-09-11 Thread Thomas Broyer
On Tuesday, September 11, 2012 6:16:43 PM UTC+2, Thomas Lefort wrote: > > Hi, > > Thanks to both of you. > > Regarding teh anchor, I did try with the following code, but it still > doesn't work. > > Anchor anchor = new Anchor(); > anchor.setHref("#EISearchResultPlace:" + result); > anchor.setTar

Re: Open new tab in dev mode with window.open

2012-09-11 Thread Thomas Lefort
Hi, Thanks to both of you. Regarding teh anchor, I did try with the following code, but it still doesn't work. Anchor anchor = new Anchor(); anchor.setHref("#EISearchResultPlace:" + result); anchor.setTarget("_blank"); anchor.setVisible(false); RootPanel.get().add(anchor); anchor.fireEvent(new

Re: Open new tab in dev mode with window.open

2012-09-11 Thread Thomas Broyer
On Tuesday, September 11, 2012 4:08:46 PM UTC+2, Thomas Lefort wrote: > > Hi, > > I am trying to programatically open a new tab in dev mode with a new > instance of my application, eg my application url + the place name. I use > window.open("#myplacename:", "_blank"). But all I get is a window w

Re: Open new tab in dev mode with window.open

2012-09-11 Thread Juan Pablo Gardella
Did you tried use a invisible anchor and click on it? 2012/9/11 Thomas Lefort > Hi, > > I am trying to programatically open a new tab in dev mode with a new > instance of my application, eg my application url + the place name. I use > window.open("#myplacename:", "_blank"). But all I get is a wi

Open new tab in dev mode with window.open

2012-09-11 Thread Thomas Lefort
Hi, I am trying to programatically open a new tab in dev mode with a new instance of my application, eg my application url + the place name. I use window.open("#myplacename:", "_blank"). But all I get is a window without any of the specs/options such as navigation, etc... also the url is wrong,