EasyUI Forum
June 15, 2024, 05:45:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: easyui-window and PDF file  (Read 10876 times)
rezzonico
Full Member
***
Posts: 184


View Profile
« on: August 22, 2014, 09:11:08 AM »

Hi all,

is it possible to open a pdf-file in easyui-window ?
On my PC, "Adobe Acrobat" is installed but the following code do not works.
"Adobe Acrobat" is not started and in easyui-window I see "strange characters":

Code:
 $('#win').window('refresh', '/file.pdf');

<div id="win" class="easyui-window" title="Pdf" style="width:300px;height:200px;">
</div>

Thanks for any help.

Regards.
Miche

« Last Edit: August 22, 2014, 09:22:03 AM by rezzonico » Logged
wexwell
Newbie
*
Posts: 8


View Profile Email
« Reply #1 on: August 25, 2014, 11:50:11 AM »

I have no idea what the official answer is, but I would think it would be very possible with an expanded row. The example shows where they are displaying image files. I have code where I am displaying 3 different tables, one of which includes a link to files that may be stored on the server for the record, and then they are opened as a file attachment. If you can figure out how to do it w/ html / php (or whatever code you use) then you should be able to display it with the expanded row details.

http://www.jeasyui.com/tutorial/datagrid/datagrid21.php

I'm showing most of my code here detailing how I display files as attachments with regards to a question I asked. Perhaps some of it will be helpful.

http://www.jeasyui.com/forum/index.php?topic=3768.0
Logged
bakoma
Newbie
*
Posts: 13


View Profile Email
« Reply #2 on: August 27, 2014, 04:54:21 PM »

One of the workaround is ti use <iframe src="my.pdf"/> inside your window though.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!