Forums

PHP

This topic is locked

Advance Open Windows Extension and PHP goto Detail

Posted 15 Feb 2002 11:34:22
1
has voted
15 Feb 2002 11:34:22 Pat Heuber posted:
I would like to move from a Detail Page to a printer friendly page. As far as now I use a second goto detail page server behavior and let a blank page open that is designed to work well with the printer.

I would like to use the Advance Open Windows Behavior of Dreamweaver (should be the same as open browser window) to combine the advance techniques of this behavior together with the php goto detail page behavior. This is because the blank page opens completly covering the original page.

As a newbie I expected problems to get the relevant php scripting in to the java script as I need the article ID to be passed over to the printer page.

can somebody help me ?

Replies

Replied 17 Feb 2002 23:05:39
17 Feb 2002 23:05:39 Thorsten Roever replied:
I had the same situation before. This is the way I solved that "problem":

I used the "go to related page - function", then used a popup-window to display the print friendly site using dreamweavers typical javascript-funtion. After that I took the "go to related page link-code" and edited the javascript of the popup as following:

<A HREF="#" onClick="MM_openBrWindow('/member/newsprint.php?<?php echo $MM_keepURL /*Related page*/ ?>','news','menubar=yes,scrollbars=yes,width=350,height=400')"><img src="../imgs/basics/print.gif" width="16" height="12" border="0"></A>

After that I filtered the print-friendly-site by textID with "URL Get Parameter".

That works for me - maybe it helps.

Reply to this topic