OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread Ciliotta, Mario
Hi all,

I was wondering if someone will be able to help me with a issue that I am having.  I 
need to be able to either disable the print button in the browser toolbar (IE only) or 
trap that the user click the print button and display a message, that the form is not 
complete or if it is possible to print a different document, then the unfinished form.

I know that I can open the form in a browser window without the toolbar but people get 
real ticked off if that tool bar is missing and then call the support desk to complain 
that their browsers is not working correctly.

The problem basically is that my users are lazy and will print off a half completed 
form, then fill in the rest of the fields by hand and then fax the form - instead of 
doing it all online.  The form needs to be printed at the end but that is after all 
the fields are filled out.

If anyone knows how to stop this, that would be great.  We are using CFMX for this 
application if that matters - maybe CF could be used to trap the print???

Thanks

Mario

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative  
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread Jim Campbell
Mario -

You can't disable the print button in the browser, but the method you 
were using is probably the most effective way of doing that - opening a 
new window without a toolbar.  For good measure, you may want to trap 
the right-click to keep people from choosing the print command through 
the context menu.  You could possibly place the form in a large frame 
with a smaller frame above it extolling the users to fill out the form 
in its entirety before printing.

Have you looked into using PDF's?  I know you can disable printing a 
document completely, but I don't know if you can granularly control that 
to only enable printing after certain criteria (such as filling out all 
form fields) have been met.

- Jim

Ciliotta, Mario wrote:

Hi all,

I was wondering if someone will be able to help me with a issue that I am having.  I 
need to be able to either disable the print button in the browser toolbar (IE only) 
or trap that the user click the print button and display a message, that the form is 
not complete or if it is possible to print a different document, then the unfinished 
form.

I know that I can open the form in a browser window without the toolbar but people 
get real ticked off if that tool bar is missing and then call the support desk to 
complain that their browsers is not working correctly.

The problem basically is that my users are lazy and will print off a half completed 
form, then fill in the rest of the fields by hand and then fax the form - instead of 
doing it all online.  The form needs to be printed at the end but that is after all 
the fields are filled out.

If anyone knows how to stop this, that would be great.  We are using CFMX for this 
application if that matters - maybe CF could be used to trap the print???

Thanks

Mario

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST 
BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON 
reserve the right to monitor all e-mail communications through its networks. Any 
views expressed in this message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state them to be the views 
of any such entity.
Unless otherwise stated, any pricing information given in this message is indicative  
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread ksuh
You could use the onbeforeprint event to hide the page before it prints.

But, it could be that perhaps the form should be reworked so that it's easier for 
users?  How about if faxed requests are simply rejected?

- Original Message -
From: Ciliotta, Mario [EMAIL PROTECTED]
Date: Wednesday, July 9, 2003 9:08 am
Subject: OT: Need to disable print button or at least trap and display a message.

 Hi all,
 
 I was wondering if someone will be able to help me with a issue 
 that I am having.  I need to be able to either disable the print 
 button in the browser toolbar (IE only) or trap that the user 
 click the print button and display a message, that the form is not 
 complete or if it is possible to print a different document, then 
 the unfinished form.
 
 I know that I can open the form in a browser window without the 
 toolbar but people get real ticked off if that tool bar is missing 
 and then call the support desk to complain that their browsers is 
 not working correctly.
 
 The problem basically is that my users are lazy and will print off 
 a half completed form, then fill in the rest of the fields by hand 
 and then fax the form - instead of doing it all online.  The form 
 needs to be printed at the end but that is after all the fields 
 are filled out.
 
 If anyone knows how to stop this, that would be great.  We are 
 using CFMX for this application if that matters - maybe CF could 
 be used to trap the print???
 
 Thanks
 
 Mario
 
 This message is for the named person's use only. It may contain 
 sensitive and private proprietary or legally privileged 
 information. No confidentiality or privilege is waived or lost by 
 any mistransmission. If you are not the intended recipient, please 
 immediately delete it and all copies of it from your system, 
 destroy any hard copies of it and notify the sender. You must not, 
 directly or indirectly, use, disclose, distribute, print, or copy 
 any part of this message if you are not the intended recipient. 
 CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
 FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of 
 CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail 
 communications through its networks. Any views expressed in this 
 message are those of the individual sender, except where the 
 message states otherwise and the sender is authorized to state 
 them to be the views of any such entity.
 Unless otherwise stated, any pricing information given in this 
 message is indicative  only, is subject to change and does not 
 constitute an offer to deal at any price quoted. Any reference to 
 the terms of executed transactions should be treated as  
 preliminary only and subject to our formal written confirmation.
 
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread A.Little
You can also use style sheets to determine what gets printed as opposed to
what users view on screen - so just use a media=print stylesheet and make
it blank - or something!

eg:
link href=/css/knstyle.css rel=stylesheet type=text/css
media=screen
link href=/css/knprintstyle.css rel=stylesheet type=text/css
media=print

We use this method so that people don;t end up printing all the menu/banners
etc from webpages. But I've found this only works reliably with IE (4+?)
through.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 09 July 2003 16:47
 To: CF-Talk
 Subject: Re: OT: Need to disable print button or at least trap and
 display a message.
 
 
 You could use the onbeforeprint event to hide the page before 
 it prints.
 
 But, it could be that perhaps the form should be reworked so 
 that it's easier for users?  How about if faxed requests are 
 simply rejected?
 
 - Original Message -
 From: Ciliotta, Mario [EMAIL PROTECTED]
 Date: Wednesday, July 9, 2003 9:08 am
 Subject: OT: Need to disable print button or at least trap 
 and display a message.
 
  Hi all,
  
  I was wondering if someone will be able to help me with a issue 
  that I am having.  I need to be able to either disable the print 
  button in the browser toolbar (IE only) or trap that the user 
  click the print button and display a message, that the form is not 
  complete or if it is possible to print a different document, then 
  the unfinished form.
  
  I know that I can open the form in a browser window without the 
  toolbar but people get real ticked off if that tool bar is missing 
  and then call the support desk to complain that their browsers is 
  not working correctly.
  
  The problem basically is that my users are lazy and will print off 
  a half completed form, then fill in the rest of the fields by hand 
  and then fax the form - instead of doing it all online.  The form 
  needs to be printed at the end but that is after all the fields 
  are filled out.
  
  If anyone knows how to stop this, that would be great.  We are 
  using CFMX for this application if that matters - maybe CF could 
  be used to trap the print???
  
  Thanks
  
  Mario
  
  This message is for the named person's use only. It may contain 
  sensitive and private proprietary or legally privileged 
  information. No confidentiality or privilege is waived or lost by 
  any mistransmission. If you are not the intended recipient, please 
  immediately delete it and all copies of it from your system, 
  destroy any hard copies of it and notify the sender. You must not, 
  directly or indirectly, use, disclose, distribute, print, or copy 
  any part of this message if you are not the intended recipient. 
  CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
  FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of 
  CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail 
  communications through its networks. Any views expressed in this 
  message are those of the individual sender, except where the 
  message states otherwise and the sender is authorized to state 
  them to be the views of any such entity.
  Unless otherwise stated, any pricing information given in this 
  message is indicative  only, is subject to change and does not 
  constitute an offer to deal at any price quoted. Any reference to 
  the terms of executed transactions should be treated as  
  preliminary only and subject to our formal written confirmation.
  
  
  
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread Jim Campbell
This could also then be controlled with Javascript... perhaps setting 
each printable element's visibility aspect to visible when it's been 
filled out - maybe on an onBlur event if there's content in the field or 
something like that.

- Jim

A.Little wrote:

You can also use style sheets to determine what gets printed as opposed to
what users view on screen - so just use a media=print stylesheet and make
it blank - or something!

eg:
link href=/css/knstyle.css rel=stylesheet type=text/css
media=screen
link href=/css/knprintstyle.css rel=stylesheet type=text/css
media=print

We use this method so that people don;t end up printing all the menu/banners
etc from webpages. But I've found this only works reliably with IE (4+?)
through.
   

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 July 2003 16:47
To: CF-Talk
Subject: Re: OT: Need to disable print button or at least trap and
display a message.


You could use the onbeforeprint event to hide the page before 
it prints.

But, it could be that perhaps the form should be reworked so 
that it's easier for users?  How about if faxed requests are 
simply rejected?

- Original Message -
From: Ciliotta, Mario [EMAIL PROTECTED]
Date: Wednesday, July 9, 2003 9:08 am
Subject: OT: Need to disable print button or at least trap 
and display a message.



Hi all,

I was wondering if someone will be able to help me with a issue 
that I am having.  I need to be able to either disable the print 
button in the browser toolbar (IE only) or trap that the user 
click the print button and display a message, that the form is not 
complete or if it is possible to print a different document, then 
the unfinished form.

I know that I can open the form in a browser window without the 
toolbar but people get real ticked off if that tool bar is missing 
and then call the support desk to complain that their browsers is 
not working correctly.

The problem basically is that my users are lazy and will print off 
a half completed form, then fill in the rest of the fields by hand 
and then fax the form - instead of doing it all online.  The form 
needs to be printed at the end but that is after all the fields 
are filled out.

If anyone knows how to stop this, that would be great.  We are 
using CFMX for this application if that matters - maybe CF could 
be used to trap the print???

Thanks

Mario

This message is for the named person's use only. It may contain 
sensitive and private proprietary or legally privileged 
information. No confidentiality or privilege is waived or lost by 
any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender. You must not, 
directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message if you are not the intended recipient. 
CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE 
FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of 
CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail 
communications through its networks. Any views expressed in this 
message are those of the individual sender, except where the 
message states otherwise and the sender is authorized to state 
them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this 
message is indicative  only, is subject to change and does not 
constitute an offer to deal at any price quoted. Any reference to 
the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.



  


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread Scott Brady
-- Original Message --
From: [EMAIL PROTECTED]
But, it could be that perhaps the form should be reworked so that it's easier for 
users?  How about if faxed requests are simply rejected?

I think the idea is that the form is supposed to be printed and faxed in, but only 
after it's been completely filled out.

If that's the case, what I'd do is have an HTML Print button on the form itself 
(that button would not show up on the print-out).  When they click it, you'll validate 
that the form has been printed and alert them if not.  If it does validate, then the 
print dialog shows up allowing them to print the page.

Granted, this won't stop them from right-clicking to print, but if I see a big print 
button on the page itself, I'm gonna click that instead of right-clicking to print.

I don't know what the form looks like, but assuming there are text boxes, you may have 
the problem of the entire field not showing up [i.e., if the field is 25 characters 
wide, with a maxlength of 30, then a 30-character entry will be cut off.  In that 
case, I'd have the print button, validate as I said, then go to a form processing page 
that displays the data they filled out, and onload do a print() call.

Those are just some options.

Of course, life would be easier if there was an onprint() method, but I don't think 
there is.

Scott

Scott Brady
http://www.scottbrady.net/

 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



Re: OT: Need to disable print button or at least trap and display a message.

2003-07-09 Thread Scott Brady
You know, perhaps another option is user training.

On the form, have (in bold print, if necessary) a message explaining that they need to 
fill out all the information on screen prior to printing. Any forms faxed in with 
hand-written data will be rejected.

Scott

Scott Brady
http://www.scottbrady.net/

 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4