-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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.
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 ?
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.
Asked: 2013-04-25 17:16:40 +0800
Seen: 60 times
Last updated: May 09 '13
Can you provide a sample that can reproduce this issue?
benbai ( 2013-04-26 10:34:02 +0800 )edit