I'm confused, why not just use this?

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.html#open(java.lang.String,
java.lang.String, java.lang.String)

On Mar 21, 9:39 am, Werner Assek <[email protected]> wrote:
> 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.

Reply via email to