|
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]
|