RE: Removing a node??
Kirk Daries <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <D09B591872D1D611AF2B0010B5A1AAD0835C0A@WCSMAIL> |
ok to answer my own question... this.reportButton.getParentNode().removeChild(this.reportButton); Still don't know why setting it to null didn't work though! ;) Regards KD -----Original Message----- From: Kirk Daries [mailto:[email protected]] Sent: 07 July 2003 04:48 To: [email protected] Subject: [Barracuda] Removing a node?? Hi Guys, Quick question? How does one remove a node from a xmlc document? I thought is was a simple mater of setting it to null...? But that doesn't seem to work... E.g. public void processButtonNodes(HTMLObject xmlcPage, String pageEvent) { this.reportButton = (HTMLButtonElement) xmlcPage.getElementById("reportPage"); if (this.removeReportButton == true) { if (this.reportButton != null) { this.reportButton = null; // Doesn't seemt to work? System.out.println("Setting reportButton to null."); } else { System.out.println("Node not found!!"); } } super.processButtonNodes(xmlcPage, pageEvent); } Can someone clue me in? Thanx KD _______________________________________________ Barracuda mailing list [email protected] http://barracudamvc.org/lists/listinfo/barracuda