Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 10:56 AM, Carl Franks wrote: Ah, it's the old FAQ :) - you need to call insert_after() on the parent of $position, not the $form object. So, do this: $position->parent->insert_after( \%new_spec, $position ); Hi! I tried this, but not works perfectly, the new element render

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 12:15 PM, Carl Franks wrote: On 10 January 2012 10:22, Gabor HALASZ wrote: Thanks :) My last question today: I created a simple element/constraint pair for my app to protect form's hidden fields (with sha1 checksum) from malicious users. What do you think, its maybe interesting to

Re: [html-formfu] position element not found

2012-01-10 Thread Carl Franks
On 10 January 2012 10:22, Gabor HALASZ wrote: > Thanks :) My last question today: I created a simple element/constraint pair > for my app to protect form's hidden fields (with sha1 checksum) from > malicious users. What do you think, its maybe interesting to publish? Sounds interesting - similar

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 10:56 AM, Carl Franks wrote: On 10 January 2012 09:16, Gabor HALASZ wrote: On 1/10/2012 9:38 AM, Carl Franks wrote: Hi, Can you provide the config / code which sets-up the form, and the rest of your code which looks like it's cut off mid-line? Hi! My configs: picture/manage

Re: [html-formfu] position element not found

2012-01-10 Thread Carl Franks
On 10 January 2012 09:16, Gabor HALASZ wrote: > On 1/10/2012 9:38 AM, Carl Franks wrote: >> >> Hi, >> Can you provide the config / code which sets-up the form,  and the rest >> of your code which looks like it's cut off mid-line? > > > Hi! > > My configs: > > picture/manage.conf: > > <> > >    ty

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 9:38 AM, Carl Franks wrote: Hi, Can you provide the config / code which sets-up the form, and the rest of your code which looks like it's cut off mid-line? Hi! My configs: picture/manage.conf: <> typeBlock id fieldb

Re: [html-formfu] position element not found

2012-01-10 Thread Carl Franks
Hi, Can you provide the config / code which sets-up the form, and the rest of your code which looks like it's cut off mid-line? Cheers, Carl On Jan 9, 2012 6:20 PM, "Gabor HALASZ" wrote: > Hi! > > I tried to add elements to my form (new elements into a fieldset element), > but I got exception wi