___Newbie (with Mochikit) warning___

I am asynchronously updateing a page.

I create a  "div" element divnode.  Then I want to add content to this.

I have found that if I do
newelement1 = ...
newelement2 = ...
newelement3 = ...

appendChildNodes(divnode,newelement1, newelement2, newelement3);
swapDOM(targetnode, divnode);

it behaves nicely.

If I do
newelement1 = ...
appendChildNodes(divnode,newelement1);
newelement2 = ...
appendChildNodes(divnode,newelement2);
newelement3 = ...
appendChildNodes(divnode,newelement3);
swapDOM(targetnode, divnode);

It does something, but the new elements do not appear.

Is this a known gotcha?

(I am using Firefox 1.5.0.9.)

Claypipe


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to