Jump to content

Can PHP load pdf file without opening new window


KLS_andy

Recommended Posts

hi...i have a new problem. at one of my page,i put a link, the link will invoke pop up windows to display the pdf file, but now i want to display the pdf file not in the new window but in the same page with the link (may be below the link), just like "granger.com" but granger using JSP.. can PHP do it?? any solution..thanz before...

Here is the code...

 

<script language="javascript"><!--

document.write('<? echo '<a href="javascript:popupWindow(\\\'' . $pdflocation . $res[PdfProd] . '.pdf' . '\\\')">' . TEXT_MORE_INFORMATION .tep_image(DIR_WS_IMAGES . 'adobe_pdf.gif') . '</a>';   

?>');

//--></script>

 

Actually i use javascript to pop up another window to display the pdf...can i display pdf page in the same page(e.g after the link line)?Must i use frame n then the link direct the pdf page n display it in the frame??Any other solution??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.