0

ZK renders blank screen even if zul components viewed via IE view source

asked 2013-04-25 17:16:40 +0800

v120680 gravatar image v120680
3 1

updated 2013-04-26 06:40:12 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Im using ZK 6.0.2 to create a simple search screen. The search has few fields when the age loads at times we are getting blank screen. When tried view source in IE it shows the HTML Doc with the zul components in the page with-in script called zkmx. the view source content

 <script class="z-runonce" type="text/javascript">zkmx(....
['zul.wnd.Window','tJzP0',{id:'rcoWindow',$$onSize:false,$$onMaximize:false,$$onOpen:false,$$onMinimize:false,$$onZIndex:false,$onClose:true,$$onMove:false},[
['zul.utl.Script','tJzP1',{},[]],
['zul.layout.Borderlayout','tJzP2',{height:'57px',prolog:'\n  \n   \n  '},[
['zul.layout.West','tJzP3',{$$onOpen:false,$$onSize:false,width:'170px',style:'background:black',border:'none'},[
['zul.wgt.Image','tJzP4',{style:'padding:2px',src:'/omgui/images/omgui-logo3.gif'},[]]]],

When we used Developer tool the HTM Tab contet was empty with simple div and body tags. BUt hte Scripts tab showed the content like above. It hapens once after the login for few attempts then on repeated try it loads the components in the page.

delete flag offensive retag edit

Comments

Can you provide a sample that can reproduce this issue?

benbai ( 2013-04-26 10:34:02 +0800 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-05-06 08:50:56 +0800

v120680 gravatar image v120680
3 1

Its happening for our application first page. We dint try with any sample code. We tried to debug through zkmx js function in zk.jar. Initially tried to put alert in the zkmx function flow. Since alert halts the js flow after clicking "OK" likey on 10 continuous alert message the page is rendered empty but the view source showed the above code. Then tired to use Developer Tool to check the flow. The HTML tab content is empty with simple div tags. But the script tab in tool showed the view source content.

      The script

function breathe(fn) { var t = jq.now(), dt = t - _t0; if (dt > 2500) { //huge page (the shorter the longer to load; but no loading icon) _t0 = t; dt >>= 6; setTimeout(fn, dt < 10 ? dt: 10); //breathe //IE optimize the display if delay is too short return true; } }

      Whenever the time diff > 2500 , the function called mtBL() in mount.js gets called and the following lines 
            "var inf = _crInfBL0.shift();
        if (!inf)
             break;"

THe code flow then breaks up. So think the components are not drawn on the page.I tired using log4javascipt.js to print logger in the ks flow . THats how im cgetting some idea where the page breaks up.

link publish delete flag offensive edit

Comments

You can try run it on chrome or firefox, and then you can right click on the page then click 'Inspect element' to see whether the dom elements are rendered, you can also see if there are any js error in console.

benbai ( 2013-05-08 10:30:31 +0800 )edit
0

answered 2013-05-08 16:44:37 +0800

v120680 gravatar image v120680
3 1

Please do clarify me, what the statement 'whether the dom elements are rendered' means. Whenever the blank page rendered in IE screen, the HTML tab content in Developer tool is empty except with related zul.wnd, zul.mesh,zul.wgt.... script tags. So pls explain the difference you mean by DOM elements ?

link publish delete flag offensive edit
0

answered 2013-05-09 01:15:48 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

updated 2013-05-09 01:16:08 +0800

Assume you have the code below

<zk>
  <div style="width: 0px; overflow: hidden;">
    <button label="test" />
  </div>
</zk>

Then you will see nothing on the page but you can find the dom element under body element.

This seems not your case, you can check whether any js error in your console, or test a very simple zul page to see whether it will work.

If a simple zul page works well, you can try build the original pages step by step (i.e., add only a small piece of code at a time) then see when will it be broken, then provide a runnable sample that can reproduce this issue for further investigation.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
4 followers

RSS

Stats

Asked: 2013-04-25 17:16:40 +0800

Seen: 60 times

Last updated: May 09 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More