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...

Link to comment
Share on other sites

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??

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.