To make matters worse I'm working in an environment where the package ext (JS-Package) loads the html via ajax. JS inside of the html therefore will not be executed (in a consistent way, considering all browsers).
Because I (want to) use the same perl construct in several html-templates the predefined js-functions have to be able to identify the correct formbuilder-element. Eventually I ended up with this solution:
CGI::FormBuilder::Source::File lets me define an additional id, if I do so, formbuilder will use this and not create its own. That is true for the form element as well as for the input-elements.
Even better, in the html-template I can ask the formbuilder input object for its id. The only minor flaw is, that the id of the form object can not be found this way
So I have to enter that id in several files, which kind of bugs me and causes bugs ;-)
Guess, I'll have to live with it
Thanks anyway
In reply to Re^4: Formbuilder: generate id, that includes formname
by Wolfgang
in thread Formbuilder: generate id, that includes formname
by Wolfgang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |