problem with rendering time by divs

liunx

Guest
Hi all,<br />
<br />
i've created a page which needs long time to load. For this i've insert two divs.<br />
First div: the page is loading - please wait...<br />
Second div: the big page...<br />
<br />
So, normaly the first div is displayed directly, and if the whole page is loaded the second div will be displayed.<br />
<br />
This stuff works fine by one page i've created - by another one, it didn't work, and i don't know why.<br />
Both divs will be displayed exactly at the same time, and not one div after the other.<br />
<br />
Has anybody some idea why??<br />
<br />
Thanks in advance<br />
<br />
Cu Daniel<br />
<br />
Here is my sourcecode:<br />
<br />
<%@ taglib uri="core" prefix="c"%><br />
<%@ taglib uri="sql" prefix="sql"%><br />
<%@ taglib uri="format" prefix="fmt"%><br />
<%@ include file="inc_conf.jsp" %><br />
<br />
<html><br />
<head><br />
<title>Proxy Daten Statistik</title><br />
<link href=http://www.webdeveloper.com/forum/archive/index.php/"/cc/css/default.css" rel="stylesheet" type="text/css" /><br />
<script language="JavaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"date-picker.js"></script><br />
<script language="JavaScript" type="text/javascript"><br />
<br />
//hide the animated load gif<br />
function hideLoadGif() {<br />
if(document.getElementById)<br />
document.getElementById("load").style.visibility = "hidden";<br />
}<br />
<br />
</script><br />
</head><br />
<br />
<body marginwidth="0" marginheight="0" onLoad="hideLoadGif()"><br />
<br />
<div id="load" style="position:absolute; visibility: visible;"><br />
<table><br />
<tr><td>&nbsp;</td></tr><br />
<tr><br />
<td>&nbsp;</td><br />
<td class="head1">Die Seite wird geladen. <br>Bitte gedulden Sie sich einen Augenblick.</td><br />
</tr><br />
<tr><td>&nbsp;</td></tr><br />
<tr><br />
<td>&nbsp;</td><br />
<td><img src=http://www.webdeveloper.com/forum/archive/index.php/"/cc/img/bar6.gif"/></td><br />
</tr><br />
</table><br />
</div><br />
<br />
<div style="position:absolute; visibility: visible;"><br />
<br />
<jsp:include page="inc_statisticSql.jsp"/><br />
<br />
<form name="crStatistic" method="post" action="/cc/jsp/crStatistic.jsp"><br />
<table width="100%" border="0" cellspacing="0" cellpadding="3" vspace="0" hspace="0" class="nav2_text"><br />
.<br />
.<br />
.<br />
.the big page<br />
.<br />
.<br />
<br />
</table><br />
</form><br />
</div><br />
</body><!--content-->Because you have have used position:abosolute both divs will be displayed at the top of the page so that the second div will cover up the first. As far as I can see you don't need it so you can just remove it and you're problem will be solved.<!--content-->Hi lavalamp,<br />
<br />
my problem isn't solved. The second div should cover up the first one.<br />
Because the first div is a very small one - he should be displayed after a few moments (The page is loading), and the second div is a large one - he take some seconds until he is rendered (The real content of the page).<br />
<br />
My problem now is, that at one JSP-Page this works quite fine - but at a other JSP-Page it don't work - both divs are displayed at exactly the same time.<br />
<br />
My question is, if anybody have a idea what the reason could be??<br />
<br />
Thanks in advance<br />
<br />
Cu Daniel<!--content-->Perhaps on the 2nd page the content is already in the cache so the browser displays it? Sorry if I'm off the track there.<!--content-->Hi,<br />
<br />
i don't think, that this is the problem.<br />
<br />
The problem occurs also if i cleared the cache. And the page needs for every load near to ten seconds - so i don't think that the page is in the cache.<br />
<br />
Cu Daniel<!--content-->In that case it must be something in the source of the second page that's messing it up. Can you post a link to it, or perhaps upload your site as a .zip file.<!--content-->Hi lavalamp,<br />
<br />
here is the complete JSP-Page which don't work.<br />
<br />
Cu Daniel<!--content-->Have you tried putting this:<br />
<br />
onload="hideLoadGif();"<br />
<br />
inside your body tag?<!--content-->Hi lavalamp,<br />
<br />
yes i've tried putting onload="....." inside the body tag - this works fine (setting first div to hidden)<br />
I removed it for better testing - sorry for this misunderstanding.<br />
<br />
So the only and fundamental problem is, that both divs will be displayed at exactly the same time.<br />
<br />
Cu Daniel<!--content-->Well I'm at a loss then, maybe you shoud try posting this in the asp forum. Sorry that I couldn't help.<!--content-->
 
Back
Top