I am assuming that you're not storing any of this information in the
database, otherwise it would be easy to call the page in a separate window.

So if that's the case, store the results in the session.

Also, you can designate the print css with @media print inside your css

http://www.w3schools.com/CSS/css_mediatypes.asp


Hope that helps.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of kdubya
Sent: Wednesday, December 16, 2009 3:07 PM
To: CakePHP
Subject: Open action in popup

I have an application where I want a "printer friendly" rendering. My
print() action has it's own layout. The action is called from a form
(method=POST). I need all the input from the form to generate the
stuff to be printed. How do I get the resulting stuff to be rendered
in a popup window instead of the existing window? Is it something I
put in the layout? (I'm not really good with javascript stuff) Is
there a way to specify this using redirect()? I have looked around
quite a bit and I'm drawing a blank. (Note: I do know how to open a
popup if I have a link like <a href="...>. I just can't figure out how
to do it from an action that processes the data from a form)

Thanks,
Ken

Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to