That's true. It's a good thing to know.
However, you can avoid that 'if' using deferred binding, based on
'user.agent'.
Thanks for posting!

Ezequiel Palumbo.-

On 16 jun, 07:46, pepgrifell <[email protected]> wrote:
> hi,
>
> after trying different things, I found one that is working :
>
> public native void updatePattern() /*-{
>           if(navigator.userAgent.toLowerCase().contains("msie")) {
>                  var f = $wnd.frames['oldWebFrame'];
>                  f.updateRotatePattern();
>            } else {
>                var iframe = $doc.frames ? $doc.frames['oldWebFrame'] :
> $doc.getElementById('oldWebFrame');
>                var ifWin = iframe.contentWindow || iframe;
>                ifWin.updateRotatePattern();
>            }
>  }-*/;
>
> On Jun 16, 12:05 pm, pepgrifell <[email protected]> wrote:
>
>
>
>
>
>
>
> > hi,
>
> > I have a JSP placed in a Frame object. The Frame has the id
> > 'oldWebFrame'.
>
> > Frame frame_ = new Frame();
> > frame_.getElement().setId('oldWebFrame');
>
> > The JSP has a Javascript function called updatePattern().
>
> > I define a JSNI call in GWT:
>
> > public native void updatePattern() /*-{
> >                    var f = $wnd.frames["oldWebFrame"];
> >            f.updatePattern();
> >  }-*/;
>
> > It works ok with IE but with Firefox I get an error ("f is
> > undefined").
> > Does I need to make a different call for Firefox ?
>
> > Thanks !
> > pep

-- 
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