On Tue, Aug 10, 2004 at 04:12:54PM -0400, Andrew Perrin <[EMAIL PROTECTED]> 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
signature.asc
Description: Digital signature
-- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
