Hello,
I am trying to use a GWT native method to open a window. It is working
fine in Chrome, firefox and Internet Explore but there is a problem
with Safari:
"TypeError: Result of expression '$wnd.test.engineWindow' [undefined]
is not an object."
My Method code:
private static native void open(String url, String engineName,
String params) /*-{
if (!$wnd.test) {
$wnd.test= new Object();
}
if ($wnd.test.engineWindow != null && !
$wnd.test.engineWindow.closed) {
engineName = engineName + new Date().getTime();
}
$wnd.test.engineWindow = $wnd.open(url, engineName, params);
$wnd.test.engineWindow.focus();
}-*/;
It seems correct that $wnd.test.engineWindow is undefined for the
first request, but it is no problem with all browsers accept Safari.
Thanks for your feedback if you have an idea.
regards
Werner
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.