how to display a pdf file in modal window. - 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 display a pdf file in modal window. (/showthread.php?tid=71697) |
how to display a pdf file in modal window. - kvanaraj - 09-13-2018 I want to display a pdf file in modal window Code: `gallery` ( Code: <button type="button" class="fa fa-eye" data-toggle="modal" data-target="#myModal1" Code: public function download($markid) Code: function getRows($params = array()){ no display. need help. RE: how to display a pdf file in modal window. - Wouter60 - 09-14-2018 I don't think your button can work this way. You are using Bootstrap and FontAwesome right? Try this: PHP Code: <td><?= anchor('users/download/'.$row['markid'],'<i class="fa fa-eye"></i>');?></td> Typically, force_download will trigger your browser to ask the user whether he wants to save or open the document. |