...

View Full Version : Print target page, not current



dbrown
06-02-2006, 08:51 AM
Hi. I'm trying to print a different page in my directory than the one I'm calling it from. Is this possible? What I want to have is a user presses a link, the link brings up a new popup window and then automatically prompts for a print job. What I'm getting now is the pop-up, and the print dialog prompt, but when I print, it prints the page I clicked on the link from, not the popup window. Any suggestions?
Here's what I currently have:


<a href="#" title="Click For Printer Friendly Schedule" onClick="popup('www.cvhspreps.com/index2.php?option=com_football&task=viewteam&teamID=<?=$team->id ?>', 'Win1', 900, 600); javascript:window.print(); return false">
<img src="/images/M_images/printButton.png" border="0" alt="Click For Printer Friendly Schedule">Print <?=$team->name ?>'s 2006 Schedule</a>

Thanks

jalarie
06-06-2006, 05:57 PM
Try this:


<a href="#" title="Click For Printer Friendly Schedule" onClick="PU1=window.open('www.cvhspreps.com/index2.php?option=com_football&task=viewteam&teamID=<?=$team->id ?>','Win1', 'width=900,height=600'); PU1.window.print(); return false">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum