Author: brendan.hill | Posted on: 6/16/2010 7:12:09 AM | Views : 257

My json response contains json with structure (eg. "[[[],[]]]") but no actual content.

AJAX code:
function request(url, data, call_back_function) {
var http_request = get_http();

http_request.open("POST", url, call_back_function ? true : false);
http_request.setRequestHeader("content-type", "application/json; charset=utf-8");

if (call_back_function) {
http_request.onreadystatechange = function() {
if (http_request.readyState === 4)
{
call_back_function(http_request.responseText);
} else {
//throw new Error("Web request to " + webmethod + " with data " + data + " failed: " + xhr.responseText);
}
};
}

http_request.send(data)
}


...

Go to the complete details ...