skip to Main Content

ajax xhr.responseText when result contains @ error uncaught typeerror – Jquery ajax

I do ajax call via new XMLHttpRequest(); when I do this var params = "x="+encodeURIComponent(x); var xhr = new XMLHttpRequest(); xhr.open("POST", "....php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function(e) { if (xhr.readyState == 4) { $("#divID").html(e.currentTarget.responseText); } } xhr.send(params); It is…

VIEW QUESTION
Back To Top
Search