I have a drop down list which consist more than 500 items. The dropdown list is allowing user to multi select.
var searchOption = $('#searchOptionOption').val();
var formData = {
searchOption: searchOption
};
My ajax
$.ajax({
type: 'GET',
url: 'search',
data: formData,
dataType: 'html',
success: function(html){
....
},
error: function (data){
console.log('Error:', data);
}
});
The problem i faced was when user is selecting more than 200 items then it will caused error 404 page not found during ajax call. But, sometime it can displays the result, but if exceeded an amount then it will definitely show error 404 page not found.
Is it possible caused by a large amount of data passing through ajax? Any solution to fix this issue?