Re: clearing new pages
| From: | John Kaspar | Date: | Wed, 26 May 2004 22:00:44 +0000 |
| Subject: | Re: clearing new pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187023@lists.php.net to get a copy of this message | ||
I put this at the top of long pages,
$processing = "
<span id='processing'>
processing, please wait ...
</span>
";
echo $processing;
flush();
Then put this at the bottom,
$hide = "
<script language='javascript'>
if (document.layers) {
processing.visibility='hide'
} else if (document.all) {
document.all('processing').style.visibility='hidden'
} else {
document.getElementById('processing').style.display='none'
}
</script>
";
echo $hide;
Works pretty good.
- John
On 5/26/2004 10:20 AM, Michael Young wrote:
Hi,a file called a.php prints "hello" to the browser then calls b.php which prints "goodbye" to the browser.the output looks like this: hello goodbye how do I clear the screen so the end results looks like this: goodbye