Forum: Ruby on Rails observe_form doesn't seem to work from inside of a table

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-02-11 19:43
(Received via mailing list)
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>
Colin L. (Guest)
on 2009-02-11 20:34
(Received via mailing list)
<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 removed_email_address@domain.invalid 
<removed_email_address@domain.invalid>
This topic is locked and can not be replied to.