Hi,
I have a script that takes the value of selected option in a form,
and makes a request ajax to a rails application. The ideia will be
make a ajax request and return a option string to populate a select.
At this moment I just made some tests, when the prototype makes a
ajax request, this
I have found that you have to use post AND serialize your data in order to
get it to work.
function dofill(url) {
var options = {
method: 'post',
parameters: $('myform').serialize(), // just serialize for the one item
onSuccess: fill_in,
onFailure: ajax_err,
on0: ajax_err