Ok, found an elegant solution

 
RootPanel.getBodyElement().removeChild(RootPanel.get("waitPlease").getElement());


Hope it helps anybody

On Feb 5, 11:42 am, obesga <[email protected]> wrote:
> Well, I've another problem
>
> If I do
>
> RootPanel.get().getElement().setInnerHTML("");
>
> an exception is raised:
>
> com.google.gwt.core.client.JavaScriptException: (null): null
>
> ¿ Any clues about what is happening ?
>
> Thanks
>
> On Feb 4, 1:35 pm, Ian Bambury <[email protected]> wrote:
>
> > Get the body element and set the innerhtml to ""
>
> > Ian
>
> >http://examples.roughian.com
>
> > On 4 February 2010 12:26, obesga <[email protected]> wrote:
>
> > > Hello
>
> > > I have a div element into the host page, just a 'please wait' advice
> > > while the gwt code loads.
>
> > > <!DOCTYPE html>
> > > <html>
> > >  <head>
> > >    <!--...-->
> > >  </head>
> > >  <body>
> > >  <div id="waitPlease" >Loading application, please wait...</div>
> > >  </body>
> > > </html>
>
> > > And I want to remove it from body when module loads, but I can't.... I
> > > can make it dissapear by making the div invisible; but that isn't what
> > > I want. This is what I've tried so far:
>
> > >   public void onModuleLoad() {
> > >           GWT.log("onLoad ",null); //TOLOG
> > >           RootPanel.get().clear();
> > >           if (RootPanel.get("esperePorFavor")!= null) {
> > >               RootPanel.get("esperePorFavor").setVisible(false);
> > >               RootPanel.get("esperePorFavor").clear();
> > >               RootPanel.get("esperePorFavor").removeFromParent();
> > >           }
> > >    //....
> > >     }
>
> > > Has anyone other solution ?
>
> > > Thanks in advance
>
> > > --
> > > 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]<google-web-toolkit%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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