[jQuery] problematic ajax request

[jQuery] problematic ajax request


Hi, I'm trying to make an asynchronous ajax request in which I parse
data returned after the call. However, the error handler is
repeatedly getting called, and the "msg" is always empty. However, I
have verified by manually typing in the URL and params into a browser
the page works. Here's my code
var selectedVal = cat_elt.value;
var url = "/admin/products/get_categories.php";
var paramsArray = new Array();
paramsArray[paramsArray.length] = "i=" +
ink_type_elt.value;
paramStr = paramsArray.join("&");
$.ajax({type: "GET",
url: url,
data: paramStr,
dataType: "text",
error: function(request, msg){
alert( "Error upon saving request: " +
request + "\nmessage:" + msg );
},
success: function(responseData) {
var data = responseData.responseText;
loadSingleMenuElt(cat_elt, data);
cat_elt.value = selectedVal;
}
});
What's wrong?
Thanks, - Dave