[PHP] Sending $_GET directly to AJAX

2005-12-13 Thread Erfan Shirazi

Hi all


I'm writing a function which will redirect the user to the last page 
they were at when a session timeout occurred. The function will save all 
variables and set them through POST or whatever was used on that page.


I.e: $_POST[$variableName] = $variableContent;

This works fine with regular php/html pages which uses either POST, GET 
or SESSION for sending variable from one page to another.


But I have some pages which uses AJAX and it communicates internally 
through GET, I'm able to save the variables which are send through GET 
in AJAX, in debug mode AJAX refers to it by:
(RSD: destinationUpdate uri) which basically seems to be a normal link 
without the pagename and only variables which are sent.


But when I try to set the variables again for AJAX to use after a 
timeout, nothing happens and it only displays what is called (RSD: 
received) AJAX debug mode. Which seems to be the answer to AJAX question.


It seems that it all works good when I set the correct GET variables 
until it sends back its answer, then it gets stuck. And this is my 
problem, I would like to send variables through GET to AJAX and make it 
work as it has send the variables it self.


Is there any experience AJAX users/developers which could help me with 
me problem?


Thx in advance.
/Erfan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sending $_GET directly to AJAX

2005-12-13 Thread comex
 But when I try to set the variables again for AJAX to use after a
 timeout, nothing happens and it only displays what is called (RSD:
 received) AJAX debug mode. Which seems to be the answer to AJAX question.

As far as I know, AJAX is just the use of the Javascript
XMLHttpRequest object to make HTTP requests of the server; it looks
like you have some AJAX framework that tries to automate things.  Can
you be more specific about what you're using?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php