1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On Feb 1, 2008 1:39 PM, Grant <emailgrant@×××××.com> wrote: |
5 |
> I'm currently processing orders one by one and I'd like to increase |
6 |
> automation. I'm currently submitting an order number from my desktop |
7 |
> to my server via firefox, and manually opening and printing the |
8 |
> resultant receipt and shipping label. How would you guys suggest I |
9 |
> set this up to batch so that I can process all orders with one click |
10 |
> and have the resultant receipts and shipping labels print |
11 |
> automatically, all at once? The printing part is what I'm having |
12 |
> difficulty conceptualizing because I do all of my programming on the |
13 |
> server side and the printing needs to happen on the client side. Not |
14 |
> sure how to get those two working together. Both systems run Gentoo. |
15 |
|
16 |
Do you mean this? You submit stuff through http, then you want the |
17 |
server to process it and then generate a printable page? |
18 |
|
19 |
The simplest way is to have the server to produce a properly laid out |
20 |
HTML page, and in the body tag, do this: onLoad="window.print()", so |
21 |
it'll look like <body onLoad="window.print()">. Then all you have to do |
22 |
at the client side is to accept the print. |
23 |
|
24 |
HTH |
25 |
|
26 |
- -- Joe |
27 |
-----BEGIN PGP SIGNATURE----- |
28 |
Version: GnuPG v2.0.7 (GNU/Linux) |
29 |
|
30 |
iD8DBQFHoywiYRtjrLFGYdkRAm4dAJ45Y9H3oXpZj8tk9gEda5/qhgLDPgCeJw4E |
31 |
bSxqYuwIpcPodIAdXyF34pM= |
32 |
=LX0t |
33 |
-----END PGP SIGNATURE----- |
34 |
-- |
35 |
gentoo-user@l.g.o mailing list |