I'm trying to wrap my head around how to integrate HTML::Template and CGI::FormBuilder to create a dashboard page which will include multiple components, charts and forms.
Right now my dashboard.cgi page includes an invocation of a module I've written reading:
The ->render_schedule_job_form() method use CGI::FormBuilder to collect and process some data. My $form object's constructor includes a:$html .= $ymd->render_schedule_job_form();
And it produces javascript which gets put in the header of the http response.template => $self->{'cfg'}->param("tmpl.tmpl_ScheduleJob"),
So far, so good.
Now to complicate things, my base template for the dashboard page is filled with <tmpl_include tags, some which also offer forms built with CGI::FormBuilder. Now what happens when they start competing over who gets to send the header and the javascript.
I'm having trouble understanding how to write this in a way which would avoid such conflicts. Any advise or pointers would be appreciated.
-- Hugh
In reply to Multi-form pages with CGI::FormBuilder and HTML::Template by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |