Say we have: <div id="boxes"> <div id="box1"></div> <div id="box2"></div> <div id="box3"></div> </div> What''s the best way to insert a "box4" into its sequential place? Thanks! Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
$(''boxes'').appendChild(newDiv) On Feb 23, 3:55 pm, Daniel Eben Elmore <danielelm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Say we have: > > <div id="boxes"> > <div id="box1"></div> > <div id="box2"></div> > <div id="box3"></div> > </div> > > What''s the best way to insert a "box4" into its sequential place? > > Thanks! > Daniel--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey thanks John. I also just discovered the Insertion class. Not sure how I missed that. -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of John Devine Sent: Friday, February 23, 2007 4:58 PM To: Ruby on Rails: Spinoffs Subject: [Rails-spinoffs] Re: DOM Building $(''boxes'').appendChild(newDiv) On Feb 23, 3:55 pm, Daniel Eben Elmore <danielelm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Say we have: > > <div id="boxes"> > <div id="box1"></div> > <div id="box2"></div> > <div id="box3"></div> > </div> > > What''s the best way to insert a "box4" into its sequential place? > > Thanks! > Daniel--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---