I want to replace the contents of a div with the response from
Form.request.  According to the prototype api I can use a callback
function to do so:


$('person-example').request({
  onComplete: function(){ alert('Form data saved!') }
})

My only confusion, is where is the response?  I can see it in firebug,
but have no clue how to access it!  I would like something like:


$('person-example').request({
  onComplete: function(){ $('div').innerHTHML = response; }
})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to