Hello,

I have an HTML page: HomePage.html
.....
<body id = "ThePage">
    <div id = "TheItem">
    </div>
</body>

I also have several other HTML pages.

In my onModuleLoad
I would like to remove TheItem from ThePage


package my.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.RootPanel;

public class Application implements EntryPoint
{
        @Override
        public void onModuleLoad()
        {
                    RootPanel x = RootPanel.get("ThePage");
            DOM.removeChild(x.getBodyElement(),
DOM.getElementById("TheItem"));

        }
}

This is not working.

If I have Only one HTML Page the following seems to work.

public class Application implements EntryPoint
{
        @Override
        public void onModuleLoad()
        {
                    DOM.removeChild(RootPanel.getBodyElement(),
DOM.getElementById("TheItem"));

        }
}


Any ideas on how to remove a specific item from a specific page would
make my day.

Thanks,

Raney

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