skip to Main Content

Ajax post returns empty array – Jquery ajax

I have a very simple php page with a jquery function <script type="text/javascript"> $(document).ready(function() { $.ajax({ url: "test.php", type: "POST", data: { myvar: 1, }, success: function(result) { console.log("it works"); } }); }); </script> My AJAX function is supposed to…

VIEW QUESTION

PHP Ajax not responding – Jquery ajax

In the username availability check I created two pages: register.php and registercontrol.php controlling it. I check the database connection its on work. Everything (all statements, insertin data into db) that was previously created on a single php page. But when…

VIEW QUESTION

Why my ajax request doesn't get compiled? – Jquery ajax

This part of my code isn't working, I already tried to do everything but it still doesn't working, what can I do to fix it? $.ajax({ url: "https://corona-api.com/countries/BR", type: "GET", sucess: function(response){ document.getElementById("ifbr").innerHTML = response.latest_data.confirmed }, error: function(){ document.getElementById("ifbr").innerHTML =…

VIEW QUESTION
Back To Top
Search