Just another Perl shrine | |
PerlMonks |
Multi-form pages with CGI::FormBuilder and HTML::Templateby hesco (Deacon) |
on Jan 25, 2009 at 23:19 UTC ( [id://738842]=perlquestion: print w/replies, xml ) | Need Help?? |
hesco has asked for the wisdom of the Perl Monks concerning the following question:
Hey folks: 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:
And it produces javascript which gets put in the header of the http response. 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
if( $lal && $lol ) { $life++; }
Back to
Seekers of Perl Wisdom
|
|