newdeveloper
Programmer
Hi,
I am totally new (as of today) to javascript and I have a question. I am developing a page in php (also new) and would like my data to pop up in a print window. There are existing pages that do this so I copied and modified code. We have a javascript file to which I added the following function:
function PilotQuestionnairePopupPrintView(go)
{
var winPrintView = window.open('index.php?a=PopupPilotQuestionnaire&nohead=true', 'PrintPopup', 'width=1000,height=600,scrollbars=yes,resizable=yes,toolbar=yes');
winPrintView.focus();
}
Like I said, I copied an existing function and just renamed it in the appropriate places.
Then I created my PopupPilotQuestionnaire file and I am calling it as follows from another page:
<td width="26%" valign="top" align="right">
<p align="right"><IMG ALT="" BORDER=0 SRC="images/shared_bullet_triangle.gif" width="5" height="9"><a href='' onClick='PilotQuestionnairePopupPrintView; return false;'>print</a></td>
This works for all the other pages/functions but my window does not pop up. I can physically type in the address of the 'popup page' and it comes up, but not when I click the 'print' link.
Can anybody help?
Thanks,
newdeveloper
I am totally new (as of today) to javascript and I have a question. I am developing a page in php (also new) and would like my data to pop up in a print window. There are existing pages that do this so I copied and modified code. We have a javascript file to which I added the following function:
function PilotQuestionnairePopupPrintView(go)
{
var winPrintView = window.open('index.php?a=PopupPilotQuestionnaire&nohead=true', 'PrintPopup', 'width=1000,height=600,scrollbars=yes,resizable=yes,toolbar=yes');
winPrintView.focus();
}
Like I said, I copied an existing function and just renamed it in the appropriate places.
Then I created my PopupPilotQuestionnaire file and I am calling it as follows from another page:
<td width="26%" valign="top" align="right">
<p align="right"><IMG ALT="" BORDER=0 SRC="images/shared_bullet_triangle.gif" width="5" height="9"><a href='' onClick='PilotQuestionnairePopupPrintView; return false;'>print</a></td>
This works for all the other pages/functions but my window does not pop up. I can physically type in the address of the 'popup page' and it comes up, but not when I click the 'print' link.
Can anybody help?
Thanks,
newdeveloper