How to open a pdf file in modal window dynamically? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to open a pdf file in modal window dynamically? (/showthread.php?tid=72572) |
How to open a pdf file in modal window dynamically? - kvanaraj - 01-07-2019 I want top open a pdf file in modal window dynamically? how to open. Code: <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal1" onclick="edit_book_kvr(<?php echo $row['markid'];?>)" >Open Modal</button> Code: function edit_book_kvr(markid) Code: public function ajax_edit_kvr($markid) Code: <?php if(!empty($files)){ foreach($files as $frow) |