Hello,
I’m trying to get true/false returned while using dhtmlxAjax but can’t find how to…
Here’s my sample code :
[code]checkMember= hasBooks(Id);
function outputResponse(loader) {
response = loader.xmlDoc.responseText;
if (response == ‘1’) { // 1 means Member has at least one book
return true;
} else { // 0 means Member doesn’t have any book
return false;
}
}
function hasBooks(Id) {
var url = “class/members.php?id=”+Id;
dhtmlxAjax.get( url, outputResponse );
}[/code]
The idea (of course) is that checkmember should have true or false values.
But here, it is “undefined”…