Sorry, that was just another mistake copying, I can assure you it also
dosnt work with the correct;

   var removethis = $doc.getElementById('fade');
            removethis.parentNode.removeChild(removethis);



On Feb 23, 5:58 am, davidroe <[email protected]> wrote:
> because the child you are trying to remove is oNodoToRemove, not
> removeThis?
>
> /dave
>
> On Feb 22, 4:46 pm, Darkflame <[email protected]> wrote:
>
> > *correction I was using;
>
> >  var removethis = $doc.getElementById('fade');
> >  removethis.parentNode.removeChild(oNodeToRemove);
>
> > (not $wnd, before anyone points that out)
>
> > On Feb 23, 1:42 am, darkflame <[email protected]> wrote:
>
> > > I'm not too good with Javascript, but this is what I got;
>
> > >                var removethis = $wnd.getElementById('fade');
> > >                    removethis.parentNode.removeChild(oNodeToRemove);
>
> > > But this seems to cause a crash, despite the fact that (checking
> > > firebug) the element I want to remove certainly has the ID set to
> > > fade.
> > > I'm using this as part of a redefined close-header for a GWT Dialogue,
> > > incidently. (the close functionality is working just fine, the full
> > > function is;
>
> > >         private native void redefineClose(DialogBox dialogBox) /*-{
> > >            $wnd['closeDialog'] = function () {
>
> > >            [email protected]::hide()();
>
> > >                var removethis = $wnd.getElementById('fade');
> > >             removethis.parentNode.removeChild(oNodeToRemove);
>
> > >            }
>
> > >         }-*/;
>
> > > )
--~--~---------~--~----~------------~-------~--~----~
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