Wow, now it's clear! Thank you a lot!!

Thomas

On Sunday, April 30, 2006, at 9:32 AM, Martin Bialasinski wrote:
>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
>[email protected]
>http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs




-- 
Posted with http://DevLists.com.  Sign up and save your mailbox.
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to