$.getJSON() uses the GET method, which is limited by the varying length for each browser . Therefore, in your case, the returned result obviously exceeds this limit. What you want to do is change
$.getJSON(settings.url,{search:text},function(data){if(data){buildResults(data,text);} else{$(results).html('').hide();}});
in the source code of the plugin in
$.post(settings.url,{search:text},function(data){if(data){buildResults(data,text);} else{$(results).html('').hide();}},'json');
which will force it to execute a POST request. Also, be sure to change the reference to the global $_GET array to $_POST , if any, on the server side script.
inhan source share