Re: php/ajax question

From: Date: Sat, 30 Dec 2006 20:55:29 +0000
Subject: Re: php/ajax question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-246296@lists.php.net to get a copy of this message
At 12/30/2006 10:56 AM, tedd wrote:
Why can't the php script redirect the browser when called via ajax ?
Ajax is giving PHP control over just that byte-stream that ajax is receiving and perhaps inserting into the page, not the full page itself. Say you use javascript to set the src of an img to a PHP script. When the request is made, PHP redirects to another resource. This will affect only the image object in question, not the HTML page in which the image exists. Regards, Paul

« previous php.general (#246296) next »