On 30 Apr 2006 00:48:52 -0000, Thomas Anderson
<[EMAIL PROTECTED]> wrote:
I've solved it by using Insertion.Before instead of direct innerHTML but
I still don't understand what was wrong with my code...

A.innerHTML += B; does

C = A.innerHTML;
A.innerHTML = ""  // HERE
A.innerHTML = C + B

The children of A get removed. C has a string representation of them,
but that does not include the event handlers. Just try it and alert()
the value.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to