Occasionally a my ajax request sits Ideally without the success function or the error-handler being called to let it know that it can continue, it just sits there waiting. And here is my ajax request. Any solution for it?
$(function () {
$.ajax({
url: "/Tag/GetPrimaryTags",
datatype: "json",
success: function (result) {
data = JSON.parse(result);
$('#primaryTag').append($('<option>', {
value: "Select PrimaryTag",
text: "Select PrimaryTag"
}));
$.each(data, function (i, item) {
$('#primaryTag').append($('<option>', {
value: item.tagCode,
text: item.tagName
}));
});
},
error: function (errordata) {
alert("Primary Tags Not loaded")
}
});
});