У меня есть этот запрос Ajax, но часть успеха не работает. Я не могу никуда добраться. Что -то мне не хватает? < /P>
$.ajax({
url: "ajaxsearch",
type: 'POST',
dataType: "jsonp",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
data: JSON.stringify(eval({
name_startsWith: request.term
})),
success: function (data) {
alert("yoo"); //What ever I write do not get executed is any thing wrong
}
});
Подробнее здесь: https://stackoverflow.com/questions/184 ... ot-working