Re: Print Question
| From: | Kondwani Spike Mkandawire | Date: | Tue, 09 Jul 2002 12:00:08 +0000 |
| Subject: | Re: Print Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106344@lists.php.net to get a copy of this message | ||
I wasn't in the office hence haven't visited this group for a while...
Here's an idea though I still may not understand the whole situation
but from what I think it is here goes:
I guess you will have to mix javascript and php in the following
manner... use onclick for a particular HTML variable and
create a function in Java Script that runs when you click this
and returns true or writes to an HTML variable say
input type= hidden name=hasClicked value=false...
the HTML value will give this hidden variable the value true when
clicked otherwise it will be defaulted at false... You can use
document.write.formName.hasClicked.value = true...
Then continue with:
if($hasClicked == "true")
Run the Script... This will mean your script won't run
until OK is pressed...
I hope this helps and I hope its not too late...
Spike...
"Chris Kay" <Chris.Kay@techex.com.au> wrote in message
news:E00ACB0129A4C748B02A744610798CE50652B3@headoffice-fs.techex.net.au...
Question I have is....
I want to run a print job of 200+ invoices
I have a javascript code to open a print dialog box and
Then go to next invoice and do the loop..
Problem I am having is that I want it to pause if the ok button on the
dialog
Box is not pressed..
When I run the script it fly's throught and brings up a heap of printer
Dialog boxes which causes me to ctrl+alt+del...
Anyway or pausing the script untill ok is pressed?
Thanks in advance..
------------------------------------------------------------------------
---
Chris Kay
Technical Support - Techex Communications
Website: www.techex.com.au Email: chris.kay@techex.net.au
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788
Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102
Platinum Channel Partner of the Year - Request DSL - Broadband for
Business
------------------------------------------------------------------------
---