House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Close CFDocument window?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hello all,
Billy Cox
07/05/12 11:02 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Billy Cox
07/05/2012 11:02 AM

Hello all, I have a form that submits to an action page containing a CFDocument tag in a new window. The action page sends the PDF output directly to a printer using CFPrint, soI end up with a new blank window. I have been trying *unsuccessfully* to close that new blank window programmatically so that I don't have to train users to do it. Any ideas? What I have tried is to set a javascript timer in the submitting page to close the child window after x number of seconds. I have also tried using cfthrow in the action page to catch a custom error that could then use javascript to close the window. btw, cfprint is a workaround to allow printing to a non-AirPrint device from Safari on an iPad. Thanks, Billy Cox

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Byron Mann
07/11/2012 01:27 AM

You could try a small hidden iframe and have your form post to that. Byron Mann Lead Engineer and Architect Hostmysite.com On Jul 5, 2012 11:02 AM, "Billy Cox" <billy@oldworldspices.com> wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 20, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference