On Feb 27, 9:04 am, Colin Mollenhour <[EMAIL PROTECTED]> wrote: > Ahh! Two problems.. > One, oldLast.next() will not work because you never extended oldLast. Even if > you wrapped that in $(), it wouldn't work if oldLast was a text node because > $() and Object.extend don't extend text nodes.
The OP could use: var nextNode = oldLast.nextSibling; unless innerHTML is being used to insert the new nodes - using DOM methods to create nodes will ensure that elements (including next siblings) exist before processing continues, innerHTML will not. -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
