In the context of the Rails framework, I am trying to update a table on a page asynchronously. I have several fields that can be used to filter the records whic populate the table. And I am using 'form_remote_tag' more or less like this:
<% form_remote_tag :url=>'/users/ update_user_rows/', :update=>'user_rows' do |f| %> <th> <%= select_tag( :role_selector, options_for_select(role_opts, "0"), :onChange=>'form.submit()' ) %></th> yadda... yadda... yadda... <% end %> Then in a partial (included in the page) have something along the lines of: <div id="user_rows" name="user_rows"> yadda... yadda... yadda... </div> In the controller I have code that looks like this: def update_user_rows # gather up my selector values and compose a query array # execute the query # put the results in a instance variable for use by the partial respond_to do |wants| wants.js { render :partial=>'update_user_rows' } end Everything seems to work fine except.... The browser is not updating the element 'user_rows', with the response from the server, instead it is putting up a new page with the HTML fragment generated by the server. What do I have to do to get the browser to update the element 'user_rows"?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---