You are here: Showing page while still working... « PHP Programming Language « IT news, forums, messages
Showing page while still working...

Posted by jodleren on 01/30/08 09:22

Hi all

This is an idea of mine - a button will open this (using JS), which
then should open a window with some information - then continue
working. Idea - it may take some time, so this will process it, then
store data and pass it on to the parent window.
The idea works - only once done I get the onload - but I'd like to
have the page visible already at the flush when doing things (the
sleep as for now).
This is an idea of mine, which I hope will come to work.
Any ideas/ help ?

WBR
Sonnich


<?php include("filehead.htm"); ?> // site header <head etc...
<script type="text/javascript">
function StartUp2()
{
if (window.opener && !window.opener.closed)
{
window.opener.document.forms[0].submit();
window.opener.focus();
}
else
alert("Parent window has been closed!");
window.close();
}
</script>
</head>
<body onload="StartUp2();alert('done');">
<?php
echo "Searching for $searchfor, please wait...";
echo "</body></html>";
ob_flush();

sleep(4); // I'd place something else here
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация