What is wrong with this code? [closed]
- by rajesh
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, onComplete: loadResponse
});
}
}
The code isn't working, but I don't know why. I think I need to include other files, but I don't know which