View Full Version : Opening a new Browser Window
Donald
18 Jun 2008, 9:11 AM
Hi,
I would like to open a new Browser Window with a specific URL, having the Toolbars and Menues as the Windows Explorer normally has.
After playing around with the Window class I gave up, as the window was always looking like a dialog window, but not like a standalone browser window.
Window window = new Window();
window.setUrl("http://....");
window.show();
How can I achieve this?
Related to this is: in hosted mode I can use the whiteliste and blacklist parameters. Does a similar concept exist in deployment mode?
Thanks for helping me out.
Donald
gslender
18 Jun 2008, 12:17 PM
GWT has a class for this...
http://google-web-toolkit-doc-1-5.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.Location.html
Donald
19 Jun 2008, 9:52 AM
Hi,
thanks for the hint with Window and Window.Locator.
However, there is still something weired.
All Url's of the form http://www.xzy.com/ABCD are translated into http://www.xzy.com (loosing the trail of the initial url).
How come? Any ideas/solutions?
That would be very appreciated.
Thanks,
Donald
gslender
19 Jun 2008, 1:05 PM
I'd suggest you look at the GWT source - its just converting to JSNI so you can see what underlying JS calls are being made... if you can do it in JS then you could also write your own JSNI that does what you want.
Other source for help would be the GWT groups.
Donald
21 Jun 2008, 3:43 AM
Hi,
thanks again for the help.
However, even after turning to JSNI (which I try to avoid anyway) and opening a new browser via $wnd.open(...) a new browser opens, but the path within the url after the domain is truncated.
It's unbelievable, that GWT and GXT do not offer a solution for this...
Or is there anything else I have not tried out yet?
Best,
Donald
gslender
21 Jun 2008, 4:20 AM
...if you can't find anything by Googling a solution and getting it to work with just Javascript then its a problem with browsers, not GWT or GXT.
emnoiinay9
4 Sep 2009, 7:44 PM
Up up for the threadowner!thanks a lot.:-)
simulation taux credit immobilier de France calcul pret courtier (http://simulationdecreditimmobilier.org)outil de simulation crédit immobilier dont les plus utiles sont : le calcul simulation taux credit immobilier de France calcul pret courtier (http://simulationdecreditimmobilier.org)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.