Ed,

IMHO, it's because the print dialog is a child of any window that you wish to 
be printed.  In your case, the print dialog is a child of your 
file-tracking-print's window.  Even if you invoke w.print() from the main 
window, the pop-up would still reappear because it is the dialog's parent.

Sadly, I do not know of any way to prevent the window from reappearing.  You 
might want to accept the fact that we really need to view the template before 
printing.  Just think of this as a "print preview" of some sort. ;)

BTW, I tried using HTML2PDF just as James suggested (I'll also be using it for 
my current proj).  I _believe_ HTML2PDF is no longer available as free.  
However, an old version which can be found at 
http://www.cfug-sfl.org/downloads/index.cfm still does the job.  You might want 
to look into this (although I'm not sure if this is the toolkit that he's 
refering to).


Regards,



[ simon.cpu ]


> I found some JS. See below. Its kinda working. When I click on my link 
> I can see that the popup window goes behind my main window but when it 
> open my other print template which has the code to open the print 
> dialog box the popup that was once behind now appears in front on my 
> main window but behind the print dialog. It doesn't stay behind. Why?
> 
<snip />

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1006
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to