|
Mike,
> Does anyone have any ideas or recommendations on how to
> complete this task?
Here's a old test I had, it uses frames, but you should see how to do it from
none frames.
Basically, it sees times the time to get a page/frame load event, if after 2
secs the page hasn't finished loading, then it shows a animated .gif of a clock
(not provided here) that continues to display until the page does finally load.
Hope it helps !
main page;
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script language="JavaScript">
function refreshFrame()
{
document.location.href = "url to something that takes a while
to load";
}
</script>
<title>Main page</title>
</head>
<frameset rows="60,*" cols="1" border="0" framespacing="0" frameborder="0"
onLoad="refreshFrame();">
<frame name="header_pane" id="header_pane"
src="browser?template=keyperformHead" marginwidth="0" marginheight="0"
scrolling="no" frameborder="0" noresize>
<frame name="kpiSummary_pane" id="kpiSummary_pane"
src="browser?template=pleaseWait" marginwidth="0" marginheight="0"
scrolling="auto" frameborder="0">
</frameset>
</html>
pleasewait page;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Please Wait</title>
<script language="JavaScript">
<!-- we only want the 'Please Wait' image if the server takes more than 2
seconds to respond
pictureTimeOut = "2000";
pictureURL = "static/images/spssclock.gif";
function redirTimer()
{
self.setTimeout("document.images[0].src = pictureURL;",
pictureTimeOut);
}
// -->
</script>
</head>
<body onLoad="redirTimer()">
<center>
<img src="static/images/clearpixel.gif" width="120" height="100" alt="Please
Wait, information is being loaded" border="0" align="absmiddle" vspace="200"
title="Please Wait" id="please_wait">
</center>
</body>
</html>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.