0

hello
i want to display my pdf file on same page when i click on left side ...pdf will open in right div
how i will do that???

2
Contributors
4
Replies
16
Views
3 Years
Discussion Span
Last Post by hriti
0

the pdf opens but it hides the left div i.e the menu bar from where i have more pdf's...i want that when i click a pdf it shows on right div container...and when click on other it shows there at place of first pdf.

Edited by hriti: spelling mistake

0
here i have list of pdf file from serevr:

<div class="lg_viewer_items">
         <?php
         $path="pdf/".$_REQUEST['path']."";
         $handle=opendir($path);
         while($file=readdir($handle))
         {
         if(substr($file,0,1)!=".")
         {
         ?>
         <ul>
         <li>
         <a onclick="changeLink()" href="pdf/<?php echo $_REQUEST['path'];?>/<?php echo $file;?>"><?php echo $file;?></a>
         <img src="images/lg_viewer_border.png"/>
         </li>
         </ul>
         <?php
         }
         }
         closedir($handle); 
         ?>
        </div>


        here i want to show the selected pdf:

        <div class="lg_viewer_pdf" id="pdf"></div>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.