Hi,

Can you show your _actual_ code? The lines you quoted don't quite add
up (I assume they were just pseudocode examples).
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Aug 6, 2:39 pm, zef <[email protected]> wrote:
> Hi,
>
> I am using prototype 1.6.1. I am adding a child div with id B to a
> parent div with id A. Then a while later I remove B.
>
> Like this
>
> $('A').insert(html for div B,'top');
>
> $('B').remove();
>
> This works fine the first time. But when I insert the div B a second
> time then remove it, I get an error in firefox:
>
> $('B').parentnode is null.
>
> If I look into $('A').innerHTML just before removing B though I can
> see it there.
>
> The problem only shows up in firefox (in several versions like 3.6.8
> or 3.0.14). On IE8 it works fine.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to