Notes
- This is jQuery 1.4.4
- This is not a jsonp request. Just vanilla json within my domain.
My Request
$autocomplete_xhr = $.ajax({
url: '/customers/filter.json',
contentType: "application/json",
data: { name: request.term },
dataType: 'json',
beforeSend: function(xhr) {
console.log('Inside beforeSend');
console.log(xhr);
},
When I send the AJAX request out, console.log will not fire off.
What do you think the problem is?
clearly said in docs
beforeSend(jqXHR, settings)