Re: Any way to display a changing value?

From: Date: Fri, 22 Feb 2002 12:32:09 +0000
Subject: Re: Any way to display a changing value?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85843@lists.php.net to get a copy of this message
Hi! You could use a plain form and JavaScript to do this. It's fairly simple and it makes for nice little progress bars and graphs and other 'realtime' info. A few tips: - first output the form (completely) - use *implicit* flushing when outputting your JS. - use a new <SCRIPT> .. </SCRIPT> part every time you sent commands (for Netscape) - do all calculations and stuff in PHP, minimize your JS code to something like echo("document.myform.mytext.value = '" . addslashes($newval) . "';\n"); - try to do updates 'smartly', i.e. on when the values *really* change, and not with infinite speed. bvr. On Thu, 21 Feb 2002 23:00:30 -0500, Leif K-Brooks wrote: >I was wondering if there's any way to display a value to the user that keeps >changing? I know about flush(), but that just prints it out before the >script ends, but doesn't display it in one place. Is there a way?

« previous php.general (#85843) next »