$(document).ajaxComplete(function(event, request, settings) {
alert(request.responseText);
});
Here in this code, it is alerting both js,css file and the plain response. Is there anyway to get only the plain responses.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From your question it seems you are loading via ajax several resources, so you could get the
content-typeresponse header inside the callback and, if it’stext/html, you alert theresponseText