Ajax response won't display

I’m hopeful that this is something simple i’m missing, but I’ve run out
things to try. It should work just like the example in Agile Web
Development with Rails (i think)

I send an ajax request using remote_form and it’s processing correctly
the server and returning a new form, but it won’t replace the original.
It’s supposed to update a div with class=“update”.

Help would be REALLY appreciated.

This is my page (excluding layout that add the required javascript) and
surrounding html.

<%= render :partial => 'tab_predecessor_list' %>
------------------------------------------------------------------------- This is the partial "tab_predecessor_list" --------------------------------------------------------------------- <%= form_remote_tag(:update => "update", :url => {:action => 'add_predecessor'}) %>
<span class="edit_label"><label


<%= Time.now.to_s %>

<%= submit_tag "Add" %>

<%= end_form_tag %>

And this is the response I’m getting to the Ajax Request (from Firebug).
Note the timestamp. it doesn’t update in my browser.

<span class="edit_label"><label 


Thu Apr 27 07:55:51 EDT 2006

<input name="commit" type="submit" value="Add" />

I’m using firefox with Rails 1.0. Thank you much in advance for your

I got it. I needed to use a div with ID=“update” not class=“update”.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs