here's what I do:
I put all stuff that I want to hide after the app. start into a div:
e.g. called "loadingdiv" (because I use it to show a loading message).
the first thing I do in my entrypoint, is to hide the loading div:
e.g.
RootPanel.get("loadingdiv").setVisible(false);
then I build my components and widgets and add this to the rootPanel:
RootPanel.get().add(viewport);
hope it helps..
On Feb 2, 11:51 am, bond <[email protected]> wrote:
> Sorry but it doesn't work.
>
> This is the page .html:
>
> <body>
> <script language="javascript" src="Main.nocache.js"></script>
> <!--<iframe id="__gwt_historyFrame" style="width:0;height:0;border:
> 0"></iframe>-->
> <div id="banner"><center><img src="it.pianetatecno.pianetabarche.Main/
> img/sfondo.png" alt="" width="950" height="130" /></center></div>
> <div id="menu">
> <ul id="ulmenu">
> </ul>
> <div id="search">
> </div>
> </div>
> <hr />
>
> <!-- start page -->
> <div id="page">
> <!-- start content -->
> <div id="content">
> </div>
> <!-- end content -->
> <!-- start sidebar -->
> <div id="sidebar">
> <ul>
> <li>
> <h2 id="titlebox1"></h2>
> <div id="box1"></div>
> </li>
> <li>
> <h2 id="titlebox2"></h2>
> <div id="box2"></div>
> </li>
> <li><div id="box3"></div></li>
> <li><div id="box4"></div></li>
> </ul>
> </div>
> <!-- end sidebar -->
> <div style="clear: both;"> </div>
> </div>
> <!-- end page -->
> <div id="footer">
> <p class="legal" id="legal"></p>
> <p class="credit" id="credit"></p>
> </div>
> </body>
>
> I'd like to remove ALL HTML CODE inside body (exception tag <script>).
> Maybe I've to use DOM.removeChild() or something similar?
>
> Thanks
>
> On 2 Feb, 11:43, rudolf michael <[email protected]> wrote:
>
> > RootPanel.get("id").removeFromParent();
>
> > On Mon, Feb 2, 2009 at 12:41 PM, bond <[email protected]> wrote:
>
> > > Thanks for your reply. The problem is that RootPanel.get("Id").clear
> > > (); doesn't not delete the tag from the page but only remove widgets
> > > inside the tag.
> > > The problem is that I've not widget inside the tag but other tag with
> > > css style attached.
>
> > > Any ideas?
>
> > > Thanks
>
> > > On 2 Feb, 11:32, rudolf michael <[email protected]> wrote:
> > > > RootPanel.get().clear();
> > > > you can always get any div Id also and clear it. by using
> > > > RootPanel.get("Id").clear();
>
> > > > On Mon, Feb 2, 2009 at 12:31 PM, rudolf michael <[email protected]>
> > > wrote:
> > > > > RootPanel.get().celar();
>
> > > > > On Mon, Feb 2, 2009 at 12:29 PM, bond <[email protected]> wrote:
>
> > > > >> Hi,
> > > > >> I've a simple problem. I've mi page.html where there are some tags:
>
> > > > >> <div id="tag1><div id="tag2"><div id="tag3></div></div></div>
>
> > > > >> and so on. I'd like to remove ALL tags inside the <body> so that I
> > > > >> can
> > > > >> clear the page and then add my widget.
>
> > > > >> Thanks for any suggestion
>
> > > > >> Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---