javascript - GWT: Cannot keep control of Window anymore once I close its pop-up -
my app is:
doing on main windowopening new window there
class="lang-java prettyprint-override">window.open(userinfo.signinurls.get("google"), "google", null);
closing new window
class="lang-java prettyprint-override">native public static void close()/*-{ $wnd.close(); }-*/;
trying reload main window
class="lang-java prettyprint-override">window.location.reload();
everything fine until close new windows. cannot maintain command of main window anymore. actions run never executed. ideas?
if work gwt want faw page reload possible. if load info create partial page reloads using ajax. approach have chosen not feasible. window.location.reload - create whole page reload. don't that.
you should utilize modal window - in gwt simple. utilize dialogbox, makes modal window.
http://examples.roughian.com/index.htm#widgets~dialogbox
javascript gwt browser window reload
No comments:
Post a Comment