# Page print for lightwindow

**URL:** <https://www.ruby-forum.com/t/page-print-for-lightwindow/151350>\
**Category:** Rails\
**Created:** [October 20, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/page-print-for-lightwindow/151350 "2008-10-20T16:45:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinathbtech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Post date:** [October 20, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/page-print-for-lightwindow/151350/1 "2008-10-20T16:45:39Z")

</div>

Hi,  
I was pondering how to print (printing on white paper with printer) the  
page opened in lightwindow . i was getting a list of foods on the page  
and provides a mouse over link for each food to open a lightwindow with  
total food details.  
when lightwindow popup opens i was providing two links print and close  
when clicked on print i was getting a print out with the lightwindow  
page and also list of foods existing in background.

in view :

- [Recipe and Details](#recipe_popup_<%=%20fm.id%20%>)

Print | Close
foodname\<%= food\_recipe.food\_name %\>

I used javascript:window.print(); but this is not the current one for  
getting only lightwindow data neglecting the rest in the background

any solution ?

thanks,  
sri…
