I''m trying to create a dynamic search function to filter the list  
results using form_remote_tag. I need this to work with a table data  
output. So it would update the partial template of table rows. I  
tried wrapping the table rows in a div tag but that wouldn''t update  
the table properly. Any help on this would be greatly appreciated.
Here is my code:
<%= form_remote_tag :update => "student_list", :url => {
:action =>
"list" } %>
	<input type="text" name="q" size="35"
value="<%= params[:q] %>" />
	<%= submit_tag "Search" %>
</form>
<table cellspacing="1" cellpadding="2"
class="list_table">
<tr>
    	<th>Name</th>
	<th>Grade</th>
	<th>School</th>
	<th> </th>
</tr>
<div id="student_list">
	<%= render :partial => "student_list", :collection =>
@students %>
</div>
</table>
Try using thead and tbody...
<table cellspacing="1" cellpadding="2"
class="list_table">
<thead>
  <tr>
        <th>Name</th>
        <th>Grade</th>
        <th>School</th>
        <th> </th>
  </tr>
</thead>
<tbody id="student_list">
        <%= render :partial => "student_list", :collection =>
@students %>
</tbody>
</table>
--
rick
http://techno-weenie.net
That worked great, thanks. On Dec 18, 2005, at 11:02 AM, Rick Olson wrote:> Try using thead and tbody... > > <table cellspacing="1" cellpadding="2" class="list_table"> > <thead> > <tr> > <th>Name</th> > <th>Grade</th> > <th>School</th> > <th> </th> > </tr> > </thead> > > <tbody id="student_list"> > <%= render :partial => "student_list", :collection => > @students %> > </tbody> > </table> > > > > -- > rick > http://techno-weenie.net > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails