Somehow, my ajax form was working perfect without any format. After I put it into a pretty looking table, added <table></table>, it did not work. It works with <tr> <td> , but not <table>. Anyone has any idea? Thanks,
2009/6/4 suki <li.yu-4+jYJfmkT58@public.gmane.org>:> > Somehow, my ajax form was working perfect without any format. After I > put it into a pretty looking table, added <table></table>, it did not > work. It works with <tr> <td> , but not <table>. > > Anyone has any idea? >You have not shown the view code but I suspect you may have attempted to have something like <table> <form> <tr><td>...</td></tr></form> </table> Unfortunately this is not valid html, a form cannot span a row or a number of cells, though you may find it works in some browsers. Colin
Sandip Ransing
2009-Jun-05 08:29 UTC
Re: My Ajax form doen''t work within a table. Any idea?
Form tag must be before <table> tag or inside <td> tag otherwise it will not work. - Sandip On Fri, Jun 5, 2009 at 2:27 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > 2009/6/4 suki <li.yu-4+jYJfmkT58@public.gmane.org>: > > > > Somehow, my ajax form was working perfect without any format. After I > > put it into a pretty looking table, added <table></table>, it did not > > work. It works with <tr> <td> , but not <table>. > > > > Anyone has any idea? > > > > You have not shown the view code but I suspect you may have attempted > to have something like > <table> > <form> <tr><td>...</td></tr></form> > </table> > > Unfortunately this is not valid html, a form cannot span a row or a > number of cells, though you may find it works in some browsers. > > Colin > > > >-- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---