Wednesday, June 6, 2012

Re: Using the Frame class, and adding Elements to it directly - doesn't display?

Thanks, that helped a lot, works as expected now!

- Joe

On Jun 6, 12:46 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> On Wednesday, June 6, 2012 6:13:04 PM UTC+2, King_V wrote:
>
> > Thomas,
>
> > Thanks.  I think I might be missing something very obvious, because
> > I'm looking at the APIs, and I have no idea how to do what you're
> > suggesting.
>
> > Code-wise, how do I get the document within the frame, so that I can
> > add the new Elements to it?
>
> Frame frame = ...;
> FrameElement frameElt = frame.getElement().cast();
> Document frameDoc = frameElt.getContentDocument();
>
> You'll probably have to attach your Frame first, and possibly even wait for
> the LoadHandler to be called back (even for an about:blank)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment