hesco has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multi-form pages with CGI::FormBuilder and HTML::Template
by Anonymous Monk on Jan 26, 2009 at 00:51 UTC | |
by saberworks (Curate) on Jan 26, 2009 at 01:14 UTC | |
|
Re: Multi-form pages with CGI::FormBuilder and HTML::Template
by dsheroh (Monsignor) on Jan 26, 2009 at 11:46 UTC |