Click to See Complete Forum and Search --> : problem with rendering time by divs


dbanhardt
07-11-2003, 11:11 AM
Hi all,

i've created a page which needs long time to load. For this i've insert two divs.
First div: the page is loading - please wait...
Second div: the big page...

So, normaly the first div is displayed directly, and if the whole page is loaded the second div will be displayed.

This stuff works fine by one page i've created - by another one, it didn't work, and i don't know why.
Both divs will be displayed exactly at the same time, and not one div after the other.

Has anybody some idea why??

Thanks in advance

Cu Daniel

Here is my sourcecode:

<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="sql" prefix="sql"%>
<%@ taglib uri="format" prefix="fmt"%>
<%@ include file="inc_conf.jsp" %>

<html>
<head>
<title>Proxy Daten Statistik</title>
<link href="/cc/css/default.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="date-picker.js"></script>
<script language="JavaScript" type="text/javascript">

//hide the animated load gif
function hideLoadGif() {
if(document.getElementById)
document.getElementById("load").style.visibility = "hidden";
}

</script>
</head>

<body marginwidth="0" marginheight="0" onLoad="hideLoadGif()">

<div id="load" style="position:absolute; visibility: visible;">
<table>
<tr><td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td class="head1">Die Seite wird geladen. <br>Bitte gedulden Sie sich einen Augenblick.</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td><img src="/cc/img/bar6.gif"/></td>
</tr>
</table>
</div>

<div style="position:absolute; visibility: visible;">

<jsp:include page="inc_statisticSql.jsp"/>

<form name="crStatistic" method="post" action="/cc/jsp/crStatistic.jsp">
<table width="100%" border="0" cellspacing="0" cellpadding="3" vspace="0" hspace="0" class="nav2_text">
.
.
.
.the big page
.
.

</table>
</form>
</div>
</body>

David Harrison
07-11-2003, 01:29 PM
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.

dbanhardt
07-14-2003, 03:33 AM
Hi lavalamp,

my problem isn't solved. The second div should cover up the first one.
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).

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.

My question is, if anybody have a idea what the reason could be??

Thanks in advance

Cu Daniel

Hester
07-14-2003, 04:28 AM
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.

dbanhardt
07-14-2003, 04:34 AM
Hi,

i don't think, that this is the problem.

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.

Cu Daniel

David Harrison
07-14-2003, 12:22 PM
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.

dbanhardt
07-15-2003, 02:36 AM
Hi lavalamp,

here is the complete JSP-Page which don't work.

Cu Daniel

David Harrison
07-15-2003, 01:03 PM
Have you tried putting this:

onload="hideLoadGif();"

inside your body tag?

dbanhardt
07-16-2003, 03:19 AM
Hi lavalamp,

yes i've tried putting onload="....." inside the body tag - this works fine (setting first div to hidden)
I removed it for better testing - sorry for this misunderstanding.

So the only and fundamental problem is, that both divs will be displayed at exactly the same time.

Cu Daniel

David Harrison
07-16-2003, 02:48 PM
Well I'm at a loss then, maybe you shoud try posting this in the asp forum. Sorry that I couldn't help.