That´s a good thing to know....

I was just about to face a similar problem

Thx

2011/6/16 pepgrifell <[email protected]>

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


-- 
<https://www.xing.com/profile/HansChristof_Kaller>

Christof Kaller

An de Krütpasch 15
47661 Issum

T: +49(0)2835-440 621 / M: +49(0)177-23 44 54 8
E: [email protected]
XING: https://www.xing.com/profile/Christof_Kaller

Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, daß
jede Form der
Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des
Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
mit dem Absender der E-Mail in Verbindung zu setzen.

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