Posted by Toby Inkster on 11/26/49 11:53
Cal Lidderdale wrote:
> Ok, where I'm waiting for the count to go to 0 I would like to display a
> counter, ie:
> "There are 26 left"
> "There are 22 left"
> "There are 17 left"
> Only I'd like to just make the number change with out a newline - ^H
> doesn't work. printf ("^H^H^H^H%4d", cnt)
print "<p>There are <input id=\"foo\"> processes left.</p>";
while ($n = countProcesses())
{
print "<script type=\"text/javascript\">\n;
print "document.getElementById('foo').value = {$n};\n";
print "</script>\n";
}
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|