This obviously doesn't cater for ctrl-p or File > Print (if the toolbars are visible)
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Dave Watts To: CF-Talk Sent: Fri Jan 12 21:13:34 2007 Subject: RE: Page Not Loaded Warning? > Has anyone heard of a tag or a way to keep users from > submitting forms or clicking print buttons (our own print > buttons, menubars aren't displayed usually) before the > page completely loads? I'm sure there are ways to code this, > but I'm looking at going back and implimenting on alot of > old reports and forms. > > Our clients complain when a user prints a report and it > wasn't done loading. Any ideas? Normally, you can enable buttons (that would be disabled by default) within a JavaScript function, then bind that function to your BODY tag's onload attribute. But since you want to retrofit this functionality to existing pages, I think your best bet might be to capture all clicks before the onload event handler has fired, and cancel them: http://www.quirksmode.org/js/events_order.html Read the "W3C model" section. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266469 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

