Sending $_GET directly to AJAX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux