check what I've said here http://groups.google.com/group/google-web-toolkit/browse_thread/thread/519854e6a7c77d91?pli=1
but whatch out if you'll do an RootPanel.get().getElement().setInnerHTML(""); i think that will remove the iframe that GWT adds it to the document also i don't know if that wouldn't affect the application, if the gwt will put it back or you'll end up with some errors On Feb 9, 3:54 am, go canal <goca...@yahoo.com> wrote: > [sorry if this is duplicated] > > Trying to use RootPanel.get().clear(); but it does not clear anything from > the page. Here is the HTML file: > > <body> > > <!-- OPTIONAL: include this if you want history support --> > <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' > style="position:absolute;width:0;height:0;border:0"></iframe> > > <!-- RECOMMENDED if your web app will not function without JavaScript > enabled --> > <noscript> > <div style="width: 22em; position: absolute; left: 50%; margin-left: > -11em; color: red; background-color: white; border: 1px solid red; padding: > 4px; font-family: sans-serif"> > Your web browser must have JavaScript enabled > in order for this application to display correctly. > </div> > </noscript> > > <h1></h1> > > <table align="center" id="content"> > <tr style="vertical-align:bottom;"> > <td><img src="images/logo.png"/><br/> > </td> > <td style="font-weight: 700; font-size: 1.3em;">Login</td> > </tr> > <tr> > <td style="vertical-align: top; color: gray; > font-style:italic;">bring certainty to the > uncertainty </td> > <td><div id="loginWidget"></div></td> > </tr> > <tr> > <td colspan="2"> > <div style="color: gray; font-style:italic; font-size:0.8em; > border-top:1px gray solid;">metaverse© Copyright 2009-2010</div> > </td> > </tr> > <tr> > <td></td> > <td style="color:red;" id="errorLabelContainer"></td> > </tr> > </table> > > </body> > > I am expecting that everything in the <body> will be removed. > > rgds, > canal -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.