-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 1, 2008 1:39 PM, Grant <[EMAIL PROTECTED]> wrote:
> I'm currently processing orders one by one and I'd like to increase
> automation.  I'm currently submitting an order number from my desktop
> to my server via firefox, and manually opening and printing the
> resultant receipt and shipping label.  How would you guys suggest I
> set this up to batch so that I can process all orders with one click
> and have the resultant receipts and shipping labels print
> automatically, all at once?  The printing part is what I'm having
> difficulty conceptualizing because I do all of my programming on the
> server side and the printing needs to happen on the client side.  Not
> sure how to get those two working together.  Both systems run Gentoo.

Do you mean this? You submit stuff through http, then you want the
server to process it and then generate a printable page?

The simplest way is to have the server to produce a properly laid out
HTML page, and in the body tag, do this: onLoad="window.print()", so
it'll look like <body onLoad="window.print()">. Then all you have to do
at the client side is to accept the print.

HTH

- -- Joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHoywiYRtjrLFGYdkRAm4dAJ45Y9H3oXpZj8tk9gEda5/qhgLDPgCeJw4E
bSxqYuwIpcPodIAdXyF34pM=
=LX0t
-----END PGP SIGNATURE-----
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to