Best way to detect drop down changes


#1

So I want to have a form with a drop down that lists all our customers.
And when a user selects a customer, I want it to automatically list the
customer names emails below the drop down.

Anyone have any thoughts as the best approach to do this? I could just
write javascript, but it seems like there would be a rails tag for this.

thanks,
phil


#2

On 1/2/06, phil swenson removed_email_address@domain.invalid wrote:

So I want to have a form with a drop down that lists all our customers.
And when a user selects a customer, I want it to automatically list the
customer names emails below the drop down.

Anyone have any thoughts as the best approach to do this? I could just
write javascript, but it seems like there would be a rails tag for this.

You need to use AJAX.

You might find this useful.

http://www.roryhansen.ca/?p=9

Greg

Greg F.
The Norcross Group
Forensics for the 21st Century