arbitrary html not in a div

20 views
Skip to first unread message

Phil McDonnell

unread,
Dec 19, 2011, 4:14:15 AM12/19/11
to google-we...@googlegroups.com
I found the HTML class allows me to insert arbitrary html.  This is great, but the html class puts my html in a div. Is there something similar that does not have this constraint? If I have some arbitrary html I'd like to insert at the start and end of the page, is it possible to do so without closing it in a div?

I'm looking to do something roughly as follows:
  • completely arbitrary html that leaves some divs open
  • gwt magic
  • completely arbitrary html that closes the divs that were left open
Thanks,
Phil

Ed

unread,
Dec 19, 2011, 4:31:48 AM12/19/11
to google-we...@googlegroups.com
Use RootPanel.get(ELEMENT_ID) to get a reference to the id to a html element in the page where you want to insert the html in the page. 
You can then insert it before/after you want.
- Ed

Thomas Broyer

unread,
Dec 19, 2011, 4:52:31 AM12/19/11
to google-we...@googlegroups.com
You can't do that by inserting the "completely arbitrary html" at the start and end of the page. You have to insert some HTML containing a "placeholder" for the "gwt magic" (and then use RootPanel.get("idOfThePlaceholder") to put your "gwt magic" in).
That HTML code can also be statically defined in your HTML host page, rather than dynamically inserted.
 
Thanks,
Phil
Reply all
Reply to author
Forward
0 new messages