a twisted ajax scenario please help

Discussion in 'JavaScript' started by YourChild, Nov 4, 2008.

  1. #1
    I have a very serious question that needs to be answered urgently. Please help me.

    I am using ajax.

    my javascript sends data over to handlerA.php.

    handlerA.php process some datas then redirects to handlerB.php.

    handlerB.php process some more datas then redirects back to handlerA.php

    meanwhile, ajax is waiting for a reply from handlerA.php.

    handlerA.php finishes it's duties then spits the xml out and javascript collects data from the xml.

    So the order of operation looks like this:

    javascript uses ajax and calls--->handlerA.php, processes data then redirects to --->handlerB.php, process data then redirects back to --->handlerA.php, spits xml to --->javascript

    Is this even possible?
     
    YourChild, Nov 4, 2008 IP