Jay wrote:
> I'm using Builder.node to create a table dynamically
> ...
> var rowOne = Builder.node(...); ...
> tbody.appendChild(rowOne);
> tbody.appendChild(rowTwo);
> tbody.appendChild(rowOne);  // didn't work.
> ...can't we use the same variable name to add it to the tbody?
>   
No, the value returned from Builder.node() is a handle to a DOM element 
node.  Even after inserting, the variable still holds the handle to that 
node.  The JavaScript function document.createElement() also returns 
this type of handle.



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to