$.ajax({
async: false,
type: \"POST\",
url: url+\"module/listing/\"+projectId,
data: \"ajax=true\",
success: function(response) {
$.each(resp
I had the same problem. The error is being triggered from the jQuery function 'isArraylike( obj )' from the following line:
return type === "array" || type !== "function" &&
( length === 0 ||
typeof length === "number" && length > 0 && ( length - 1 ) in obj );
The Javascript 'in' operator needs an object as operand, so chances are if you do jQuery.type(response) it'll show something other than an object (eg. string or null)
So Amit's answer should work - if not, check the type of the response data and work from there.