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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to