Re: [Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-08-25 Thread Walter Lee Davis
On Aug 25, 2011, at 12:26 AM, Bob Smith wrote: By the way, this is what I ended up with.. var hoh = $$('input.hoh:checked'); hoh.each(function(elm){ { elm.up(1).down('input.last_name').value = $F('household_last_name') elm.up(1).d

[Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-08-24 Thread Bob Smith
By the way, this is what I ended up with.. var hoh = $$('input.hoh:checked'); hoh.each(function(elm){ { elm.up(1).down('input.last_name').value = $F('household_last_name') elm.up(1).down('input.first_name').value = $F('household_first

Re: [Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-07-23 Thread Walter Lee Davis
On Jul 23, 2011, at 2:33 AM, Bob Smith wrote: The problem with putting this in the controller is that there isn't a chosen person to add the name to until someone asks the person which birthday is theirs from the list and selects the correct radio_button. The class in the radio button worked p

[Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-07-22 Thread Bob Smith
The problem with putting this in the controller is that there isn't a chosen person to add the name to until someone asks the person which birthday is theirs from the list and selects the correct radio_button. The class in the radio button worked perfectly, but now the elm.down statements are the

Re: [Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-07-22 Thread Walter Lee Davis
On Jul 22, 2011, at 3:25 AM, Bob Smith wrote: The purpose of this button is to make it easy to change the way my app stores names. The old way was with a first and last name for the whole family, with the sex and birthdays of all family members later. Now I'm trying to connect the names and bir

[Rails] Re: Any way to get all records from a partial into a JavaScript array to test?

2011-07-22 Thread Bob Smith
The purpose of this button is to make it easy to change the way my app stores names. The old way was with a first and last name for the whole family, with the sex and birthdays of all family members later. Now I'm trying to connect the names and birthdays, so any person in the family that has their