I think Insertion.Bottom isn't for direct element insertion. It is for text or HTML insertion (i.e. el.innerHTML +='<div id="one"><h3>...</h3></div>';). 
For DOM insertion like you're trying, do something like:
var parent = $('contentblock');
parent.insertBefore(el, parent.lastChild.nextSibling);

I'm not 100% sure that'll work like you want but you get the idea.

Colin

Ian Tyndall wrote:
I was thinking that this should work:

        var el = Builder.node('div',{id:'one'},[
           Builder.node('h3',{id:'two'},'another header',[
              Builder.node('div',{id:'content'},'more content')
                   ]),
        ]);
        new Insertion.Bottom('contentblock', el);


However, it produces the following error in Firebug:

content.stripScripts is not a function - prototype.js (line 1340)

Any experience/advice will be greatly appreciated!

Thanks,
Ian




  

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

Reply via email to