Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-30 Thread Mario Minati
Hi Shawn, I attached my RepeatableEditorGrid.js that does the handling of repeatable fields within a editable grid. The most import function is the getValues method that returns the values that have been set. It also sets the 'count' field with the overall number of values. All that is the se

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-30 Thread Shawn Moughtin
I have my problem figured out, but I suspect it was a dirty way to do it. I used get_all_elements and get_element a few times to get down to the element I needed and then used regex to grab the name from it. I'm sure there is an easy, obvious way, but I am not a good programmer. I would still

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-28 Thread Mario Minati
Shawn Moughtin schrieb: Mario Minati wrote: Hi Shawn, sorry but I don't understand yet where your problem lifes. On the javscript side or on the perl side. Usually formfu will do all the backend processing for you and you don't have to play with nested_names and so on. You can add more fiel

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-28 Thread Mario Minati
Shawn Moughtin schrieb: Mario Minati wrote: sorry but I don't understand yet where your problem lifes. On the javscript side or on the perl side. Usually formfu will do all the backend processing for you and you don't have to play with nested_names and so on. You can add more fields with ja

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-27 Thread Shawn Moughtin
Mario Minati wrote: sorry but I don't understand yet where your problem lifes. On the javscript side or on the perl side. Usually formfu will do all the backend processing for you and you don't have to play with nested_names and so on. You can add more fields with javascript and just adjust

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-27 Thread Shawn Moughtin
Mario Minati wrote: Hi Shawn, sorry but I don't understand yet where your problem lifes. On the javscript side or on the perl side. Usually formfu will do all the backend processing for you and you don't have to play with nested_names and so on. You can add more fields with javascript and ju

Re: [html-formfu] Question about grabbing info from Repeatable element

2009-07-26 Thread Mario Minati
Shawn Moughtin schrieb: I am using a bit of javascript code to add more rows for a repeatable. However, this requires the outer div tag created by the repeatable to have an id that matches the full nested name. For example, outer_2.inner_3.fieldname If I use the nested_name option, I only get