On 1/23/07, claypipe <[EMAIL PROTECTED]> wrote:
>
> ___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?

That code doesn't make any sense. How about posting some actual code
that someone can run and let us know what you expected it to do.

-bob

--~--~---------~--~----~------------~-------~--~----~
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