wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2009-Feb-11 17:43 UTC
observe_form doesn''t seem to work from inside of a table
If I do observe_form as below, the ajax call never occurs, but If I remove the table it works fine. This is just a test to troubleshoot as I had narrowed down my problem to this, I actually wanted a form per row of the table: <table> <tr> <% form_tag({:controller => ''sheet_entry'', :action => ''pass_input''}, :id => ''frmx1'') do %> <td> hey <%= text_field_tag ''xx'', ''xxx'' %> </td> <%= observe_form(''frmx1'', :url => {:action => ''ajx_form_changed''}, :frequency => 0.5)%> <% end %> </tr> </table> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Colin Law
2009-Feb-11 17:54 UTC
Re: observe_form doesn''t seem to work from inside of a table
<form> is not allowed between <tr> and <td> or between <table> and <tr>. It is a major inconvenience but that is the way it is. 2009/2/11 wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org <wbsurfver-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > > If I do observe_form as below, the ajax call never occurs, but If I > remove the table it works fine. > This is just a test to troubleshoot as I had narrowed down my problem > to this, I actually wanted a form per row of the table: > > <table> > <tr> > > <% form_tag({:controller => ''sheet_entry'', :action => > ''pass_input''}, :id => ''frmx1'') do %> > <td> hey <%= text_field_tag ''xx'', ''xxx'' %> </td> > > <%= observe_form(''frmx1'', :url => {:action => ''ajx_form_changed''}, > :frequency => 0.5)%> > > <% end %> > > </tr> > </table> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---