Re: php <-> js (was Javascript Navigation)

From: Date: Thu, 27 Apr 2006 22:40:02 +0000
Subject: Re: php <-> js (was Javascript Navigation)
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-234966@lists.php.net to get a copy of this message
At 10:33 AM 4/27/2006, tedd wrote:
Can js cycle reading cookies waiting for something to do while php crons writing them as needed -- and vise-versa? Is that a viable method of communication and activation between the two?
At 01:57 PM 4/27/2006, Paul Novitski wrote:
No, because cookie values are changed only on page submit & load.
Let me re-answer that. Yes, cookies are an acceptable method of PHP-JavaScript communication -- when they're turned on in the client -- but require a new page load to synchronize changed values between client & server. When I said "no" all I meant was that cookies don't work for communicating PHP-to-JavaScript within a single page-view. Paul

« previous php.general (#234966) next »