Yes. -E
On 5/10/07, Tobias Haagen Michaelsen <[EMAIL PROTECTED]> wrote: > > Hmm - I seem to have made a typo in staffName (it is case-sensitive). Could > that be it? > > > -Tobias > > -----Oprindelig meddelelse----- > Fra: [email protected] [mailto:[EMAIL PROTECTED] På vegne > af Yuan Yudistira > Sendt: 10. maj 2007 14:38 > Til: [email protected] > Emne: [Rails-spinoffs] Re: SV: [Rails-spinoffs] Builder.node (script.aculo.us) > > > Hi > > I tried : > newRow = Builder.node('tr'); > td1 = Builder.node('td',staffName); > > td2 = Builder.node('td', [Builder.node('a', {href: '#'}, > 'link')]); > > newRow.appendChild(td1); > newRow.appendChild(td2); > > it works. > > But : > var newRow = Builder.node('tr', [ > Builder.node('td', staffname), > Builder.node('td', [ Builder.node('a', {href: '#'}, 'list') ]) > ]); > > it doesn't work. Just nothing happens. and there is no error on > FireBug. just nothing happens. > > Why is that? > > Thanks > > YUAN > > > > On 5/10/07, Tobias Haagen Michaelsen <[EMAIL PROTECTED]> wrote: > > > > That is because you need to build the anchor node as well, instead of > > passing it as the textual value. You should also take advantage of the > > possibility to nest child nodes: > > > > var newRow = Builder.node('tr', [ > > Builder.node('td', staffname), > > Builder.node('td', [ Builder.node('a', {href: '#'}, 'list') ]) > > ]); > > > > > > -Tobias > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "Limitless undying love > which shines around me like a million suns > It calls me on and on across the universe...." > Accross The Universe - The Beatles - > -------------------------------------------- > Visit : > http://www.sabukhitam.com/ > ====================== > > > > > > > > > -- Eric Ryan Harrison --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
