Answer the question
In order to leave comments, you need to log in
How to debug ajax error?
Hello! There is such a url city-afisha.com/Events/Event/2848
script on this page:
var t = '';
function gText(e) {
t = (document.all) ? document.selection.createRange().text : document.getSelection().toString();
if (t.length > 30) {
$.ajax({
url: '@Url.Action("LgVr", "Utils")',
type: 'POST',
cache: false,
traditional: true,
data: {
id: '@Model.Event_Id',
title: '@Model.Title'
}
});
} // if (t.length >
}
document.onmouseup = gText;
if (!document.all) document.captureEvents(Event.MOUSEUP);
Answer the question
In order to leave comments, you need to log in
Turn off error handling (in web.config and filters) and see what the problem is.
The scientific poke method says that the problem is in the encoded data (highlighted in bold):
%26%23171%3B => «
%26%23187%3B => »
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question