[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Generating a 'pop-up' from cgi-a


I have an application where I want to generate a 'printable invoice' in a separate window. Preferably I would like the browser page to not have toolbars and all that, just a simple link at the bottom that has an  'onClick' event calling the window.print() method in it. How do I set up the headers to force the output to a new window and how do I turn off all the unnecessary 'stuff' on the browser window?

I know how to do it with JavaScript, but how do I do it without using JS, I want to be as 'universal' as possible and I know a lot of my clients users have JS turned off.

Their could be a list of 20 or 30 invoices on a page with a button next to each one saying 'print me'.

Hope someone can help!

John



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.