Tobias Haagen Michaelsen
2007-May-10 13:17 UTC
SV: [Rails-spinoffs] Re: SV: [Rails-spinoffs] Builder.node (script.aculo.us)
Hmm - I seem to have made a typo in staffName (it is case-sensitive). Could that be it? -Tobias -----Oprindelig meddelelse----- Fra: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] På vegne af Yuan Yudistira Sendt: 10. maj 2007 14:38 Til: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 <thm-GhZjJAf4V71knbxzx/v8hQ@public.gmane.org> 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/ ===================== --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Yuan Yudistira
2007-May-10 13:30 UTC
Re: SV: [Rails-spinoffs] Re: SV: [Rails-spinoffs] Builder.node (script.aculo.us)
Oh yes... now it works with flying color . :-) thanks for your answer ... love always, YUAN On 5/10/07, Tobias Haagen Michaelsen <thm-GhZjJAf4V71knbxzx/v8hQ@public.gmane.org> wrote:> > Hmm - I seem to have made a typo in staffName (it is case-sensitive). Could that be it? > > > -Tobias >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Eric Harrison
2007-May-10 13:30 UTC
Re: SV: [Rails-spinoffs] Re: SV: [Rails-spinoffs] Builder.node (script.aculo.us)
Yes. -E On 5/10/07, Tobias Haagen Michaelsen <thm-GhZjJAf4V71knbxzx/v8hQ@public.gmane.org> wrote:> > Hmm - I seem to have made a typo in staffName (it is case-sensitive). Could that be it? > > > -Tobias > > -----Oprindelig meddelelse----- > Fra: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] På vegne af Yuan Yudistira > Sendt: 10. maj 2007 14:38 > Til: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 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 <thm-GhZjJAf4V71knbxzx/v8hQ@public.gmane.org> 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---