I have had trouble making Insertion.top work with tables I would like to do something like <table> <div = "newentry"> <tr><td> First entry</td></tr> <tr><td> Second entry</td></tr> </div> </table> so that Insertion.top inserts the new row above the first entry. So far this has not worked. Has anyone else tried this? Deco
Maybe I''m mistaken, but I don''t think putting a div inside a table is valid HTML. You should probably use a tbody element. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Deco Rior > Sent: Monday, February 13, 2006 8:56 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Insertion.top & tables > > I have had trouble making Insertion.top work with tables > > I would like to do something like > > <table> > <div = "newentry"> > <tr><td> First entry</td></tr> > <tr><td> Second entry</td></tr> > </div> > </table> > > so that Insertion.top inserts the new row above the first entry. So > far this has not worked. Has anyone else tried this? > > Deco > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
That is correct. You have to have a tbody with an id attribute or a thead with an id attribute for it to work correctly. Jon Whitcraft Web Application Developer Online Services - Indianapolis Motor Speedway (317) 492-8623 -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Gregory Hill Sent: Monday, February 13, 2006 10:59 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails-spinoffs] Insertion.top & tables Maybe I''m mistaken, but I don''t think putting a div inside a table is valid HTML. You should probably use a tbody element. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Deco Rior > Sent: Monday, February 13, 2006 8:56 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Insertion.top & tables > > I have had trouble making Insertion.top work with tables > > I would like to do something like > > <table> > <div = "newentry"> > <tr><td> First entry</td></tr> > <tr><td> Second entry</td></tr> > </div> > </table> > > so that Insertion.top inserts the new row above the first entry. So > far this has not worked. Has anyone else tried this? > > Deco > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs ******************** ******************** This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted. ******************** ********************
Now that makes sense!! I guess being sloppy finally catches up with you! Deco On Feb 13, 2006, at 9:40 AM, Whitcraft, Jon wrote:> That is correct. You have to have a tbody with an id attribute or a > thead with an id attribute for it to work correctly. > > Jon Whitcraft > Web Application Developer > Online Services - Indianapolis Motor Speedway > (317) 492-8623 > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > Gregory Hill > Sent: Monday, February 13, 2006 10:59 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: RE: [Rails-spinoffs] Insertion.top & tables > > Maybe I''m mistaken, but I don''t think putting a div inside a table is > valid HTML. You should probably use a tbody element. > > Greg > >> -----Original Message----- >> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs- >> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Deco Rior >> Sent: Monday, February 13, 2006 8:56 AM >> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> Subject: [Rails-spinoffs] Insertion.top & tables >> >> I have had trouble making Insertion.top work with tables >> >> I would like to do something like >> >> <table> >> <div = "newentry"> >> <tr><td> First entry</td></tr> >> <tr><td> Second entry</td></tr> >> </div> >> </table> >> >> so that Insertion.top inserts the new row above the first entry. So >> far this has not worked. Has anyone else tried this? >> >> Deco >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > ******************** > ******************** > This E-mail (and attachments) may contain confidential/privileged > information intended only for the named addressee(s). If you are > not an intended recipient, do not read, copy, disseminate or take > any action based on the content of this E-mail. Please notify the > sender by reply E-mail and erase this E-mail from your system. Your > assistance is appreciated. E-mail transmission may not be secure or > error-free. The company is not responsible for any loss/damage > arising from any virus transmitted. > ******************** > ******************** > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs