Re: Stream Content

From: Date: Tue, 27 Feb 2001 21:20:32 +0000
Subject: Re: Stream Content
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41876@lists.php.net to get a copy of this message
If php is reading or generating the numbers, I'd almost say your out of luck. But you might be able to work around this with some JavaScript. If you can have JavaScript read the values and do the math, it can update you totals within a form quite simply: <form name=totals> <input type=text name=total1> <input type=text name=total2> </form> <script language="JavaScript"> <!-- // Read and Calculate your totals document.forms['totals'].total1.value = new_total1; document.forms['totals'].total2.value = new_total2; //--> </script> Your table might also have to use form field to contain dynamic values also. Not much for php to do but output something like above. I don't know if this is what your looking for, but I hope it helps :-) "Karl J. Stubsjoen" wrote: > Does anyone know how to stream information to a browser (without the client > having to hit refresh)? What do I need to get started? We want to have 2 > numbers we want to display on the browser, we want these numbers to change > as the data changes in the table, but done "streaming". > > * I am coding this in PHP of course : ) * > > Karl > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- 209 Media <http://www.209media.com> Ron Wills <ron@209media.com> Programmer

« previous php.general (#41876) next »