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

Submit login with Jquery – Jquery ajax

When I press the Login button I get a 500 Internal server error in the console. What's the right way to get POST using jQuery? Can you help me? <button class="login100-form-btn" type="submit" name="login" value="login" id="Login"> Login </button> $(function() { $("#Login").click(function()…

VIEW QUESTION
Back To Top
Search