inconsistent checking response.responseText?
I'm using jQuery and jqGrid in an application. I have a function

    function messageControl(response, formdata, id){
      switch(response.responseText){
        case '0': ....
        case '1': ....
        case '2': ....
        default: ....
      }
    }

The response is a PHP statement like `echo 0;` from the jqGrid editUrl. I have this function implemented on a series of scripts that are very similar except for the database table they access. Why would this work on some, and on others always skip the case options to the default? I can see in Firebug that the response is the correct digit.
inconsistent checking response.responseText?
===

I'm using jQuery and jqGrid in an application. I have a function

    function messageControl(response, formdata, id){
      switch(response.responseText){
        case '0': ....
        case '1': ....
        case '2': ....
        default: ....
      }
    }

The response is a PHP statement like `echo 0;` from the jqGrid editUrl. I have this function implemented on a series of scripts that are very similar except for the database table they access. Why would this work on some, and on others always skip the case options to the default? I can see in Firebug that the response is the correct digit.