On Sat, Sep 24, 2005 at 07:25:04AM +1000, Ron Savage wrote:
> On Fri, 23 Sep 2005 11:46:15 -0400, Evan A. Zacks wrote:
>
> > Cees Hek had an interesting idea yesterday -- allow the user to
> > specify a form parameter that controls whether or not to generate
>
> But is this the user of your module (the programmer) or of the
> app itself?
>
> I would want a system where the people using the web client
> could click a button to set the option to output PDF.
Hello Ron,
Sorry for any confusion. Both the programmer and the end-user
would be involved.
The plugin will have a form parameter, say "output_pdf" by
default, that signals whether or not to produce pdf output.
In the postrun callback, form input will be examined for the
presence of this parameter:
# "output_pdf" by default
my $needed_form_field= $CONFIG{'form_field_name'};
if( $self->query->param($needed_form_field) ) {
# generate pdf output here
}
# else do nothing
The programmer can specify the name of that form parameter when
configuring the plugin. He could change the parameter to be
"pdf", for example.
The end-user (or template writer) will add this form parameter to
any links where pdf output is desired.
app.cgi?rm=list&pdf=1
Both the idea of the form parameter to request pdf output and the
ability to customize the name of the form parameter were
suggestions from Cees.
Thanks,
-E
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]