off the top of my head, you could use an IFRAME which will allow you to
invoke the PRINT command via JS and only print the content you need.

On Sat, Mar 26, 2011 at 10:28 PM, Stephane Vantroyen <[email protected]>wrote:

>
> Hello guys,
>
> I'm looking for a solution to following problem :
>
> I display a dialog bow with details (legal info) on a page and would like
> to give the user the possibility to print it out.
>
> I've tried to this in ajax via jquery, calling a cfc and letting do the
> following :
>
> "
> <cfheader name="Content-Disposition"
> value="Attachment;FILENAME=""#fileName#""" charset="utf-8">
> <cfcontent type = "application/pdf; charset=utf-8" file="#fullPath#"
> deleteFile = "yes">
> "
> but never get the prompt on screen; I thought I could make use of the js
> print() fucntion then, but this gives me the whole page when I just need the
> particular info displayed in a jquery opened dialog box.
>
> Any idea?
>
> Thanks in advance
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343307
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to