EasyUI Forum
May 12, 2024, 08:42:49 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TCPDF can not display any page on jeasyui-tab ?  (Read 8954 times)
Jonny
Newbie
*
Posts: 38


View Profile Email
« on: April 22, 2015, 11:50:36 PM »

Dear All,

Have you ever heard product from www.tcpdf.org  ?
Their product is a PDF creator by using PHP command…

My problem is no pages shown if I put it inside jeasyui-tab…
addTab("PREVIEW”,”viewpdf.php”);
It only show blank PDF, there is no error at all…
Maybe TCPDF unable to detect  “jeasyui-tab” behavior, style etc ?

But if I add in a new tab:
window.open( 'viewpdf.php', "_blank");
All of the page shown normally ..

Is there any setting needed in <style>  / body{} ?
Please help me if you ever experienced solving TCPDF.

Thank you.

Regards,
JONNY
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 23, 2015, 12:30:20 AM »

Please try the code below:
Code:
var url = 'tcpdf/examples/example_001.php';
$('#tt').tabs('add', {
title: 'pdf',
content: '<iframe src="'+url+'" style="width:100%;height:100%"></iframe>'
})
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #2 on: April 23, 2015, 01:56:17 AM »

Dear stworthy,

I just followed your instruction and no different…..
Please help me check, is any setting wrong in my function:

function addTab(title, url, temporary ){
    if ($('#tablgn').tabs('exists', title))
            { $('#tablgn').tabs('select', title); }
            else {
                        vtemp = temporary;
                        var xxcontent = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"> </iframe>';
                        var content = '<iframe src="'+url+'" style="width:100%;height:100%;"> </iframe>';
                        $('#tablgn').tabs('add',{
                                      title:title,
                                      content: content,
                                      bodyCls:'noscroll',
                                      closable:true,
                                      tmptable:vtemp
                        });
                       
                        }         
}


Regards,
JONNY
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #3 on: April 23, 2015, 08:41:23 PM »

Dear All,

   After asking help to Master...
He said I just need to recheck the whole page of my html especially CSS setting..
He found an mistake / unuseful setting in CSS --> position: fixed

body{
   background-image:url(bg.png);
   font-family: 'Verdana', cursive;
   margin: 0px;
   padding: 15px;
   /* position: fixed;  */
   min-height: 100%;   
}

After remove / remark that line,
TCPDF now show all of the page normally..



Regards,
Jonny
« Last Edit: April 23, 2015, 08:48:43 PM by Jonny » 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!