calling ajax from within a php function having a switch ($this->method)
===

when creating an XMLrequest in a php file having a code which goes something like this...
    function abc{
    switch ($this-method){
    case GET: //code .. return X;
    case POST : // code .. return Y;
    }
    }
i am sending the ajax request from within the function... so when the ajax sends back the request , it gets caught in the switch case... and then the response text becomes the function return value replacing the actual text... any idea how to prevent the xml response from getting into the switch case...?
