My questions are:
- How can I know if the AJAX is working properly?.
- How can I retrieve the sent data in the controller in CakePHP?
My code is:
function checkLength(obj,url){
alert("URL="+url+" OBJ="+obj);
if(obj)
{
var params = 'query='+obj;
var myAjax = new Ajax.Request(url,{method: 'post',parameters:params,onSuccess: loadResponse});
}
}