I solved it like this:

<head>
     <script type="text/javascript">
          function moveWin() {
               window.scrollBy(0,100);
               setTimeout('moveWin();',10);
          }
     </script>
</head>
<body onLoad="moveWin();">

I don't get to see it scroll until the command is completed, but I really want 
to 
know it is working, not so much watch what it is doing. Once it completes it 
scrolls. 
If I am impatient I can manually scroll and see what it is doing.

Thanks!




On Friday, May 31, 2013 13:58:51 Nathan England wrote:
> I have a php script which runs a command that takes a good while to finish,
> so I have the command running via passthru($cmd); so I can see the output.
> This works great, with one problem...
> 
> The output comes pretty quickly and I have to keep scrolling down the page
> to see the output.
> 
> I want some way to either make the page automatically scroll or refresh the
> page constantly while the command runs in the background and only shows the
> latest line of output.
> 
> As the bottom of the page has not been reached yet, it seems javascript will
> not work for me, because I cannot put an id tag of the bottom of the page
> which has not loaded yet, so javascript doesn't know where to scroll to,
> unless I'm doing it wrong.
> 
> Any advice or help would be great!
-- 



Regards,

Nathan England

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NME Computer Services http://www.nmecs.com
Nathan England ([email protected])
Systems Administration / Web Application Development
Information Security Consulting
(480) 559.9681

Attachment: signature.asc
Description: This is a digitally signed message part.

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to