[TriLUG] Question for web/CGI people
David Rasch
rasch at raschnet.com
Tue Aug 10 16:17:02 EDT 2004
On Tue, Aug 10, 2004 at 04:12:54PM -0400, Andrew Perrin <clists at perrin.socsci.unc.edu> wrote:
> This is taxing my (admittedly weak) web skills and I suspect there are
> others out there for whom it is easy.
>
> I'm working on a homegrown system for tracking books and reviewers for the
> sociology journal we edit here, _Social Forces_. It's LAMP, as in
> Linux-Apache-Middleware-PostgreSQL. Most of it is pretty straightforward,
> but I've got a procedural problem.
>
> When a reviewer is assigned to a book, I want two distinct things to
> happen: (1) a letter is generated, to be printed and sent out by
> snail-mail; and (2) the user is redirected back to a blank assignment
> screen. I know how to make either one of these happen, but am stymied by
> how to make *both* happen at once. Is there a way to make a submit button
> that will both open a new browser window with the generated PDF, *and*
> redirect the current browser window to the CGI script?
>
> To whatever extent it matters, I'm working in perl, using CGI.pm, and the
> letter will be generated using LaTeX.
I would suggest you add an onclick event to a link or an onsubmit event
(using JavaScript) to your form that launches a window with the popup
PDF (which could be from a Perl script), and then redirect your current
window to a new location (document.location.href= "newurl.html"; )
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040810/3697a88b/attachment.pgp>
More information about the TriLUG
mailing list