Re: Remove element on host page

2010-02-05 Thread obesga
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 ianbamb...@gmail.com wrote: Get the body element

Re: Remove element on host page

2010-02-05 Thread obesga
Ok, found an elegant solution RootPanel.getBodyElement().removeChild(RootPanel.get(waitPlease).getElement()); Hope it helps anybody On Feb 5, 11:42 am, obesga obe...@gmail.com wrote: Well, I've another problem If I do RootPanel.get().getElement().setInnerHTML(); an exception is

Remove element on host page

2010-02-04 Thread obesga
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

Re: Remove element on host page

2010-02-04 Thread Ian Bambury
Get the body element and set the innerhtml to Ian http://examples.roughian.com On 4 February 2010 12:26, obesga obe...@gmail.com 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

Re: Remove element on host page

2010-02-04 Thread obesga
Thanks ! On Feb 4, 1:35 pm, Ian Bambury ianbamb...@gmail.com wrote: Get the body element and set the innerhtml to Ian http://examples.roughian.com On 4 February 2010 12:26, obesga obe...@gmail.com wrote: Hello I have a div element into the host page, just a 'please wait' advice