Displaying 1 result from an estimated 1 matches for "setcustom".
Did you mean:
elcustom
2006 Mar 28
1
Ajax callback to javascript array ?
I have some javascript,
<script>
var arrCustomers;
function setCustomers(arr)
{
arrCustomers= arr;
// arrCustomers holds now array of customers
}
</script>
... and Rails controller,
class CustomersController < ApplicationController
def list
@customers = Customer.find_all
end
end
... and Ajaxed link to get the customers,
<%= lin...