This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData() { | |
$.ajax({ | |
url: "blah.html", | |
success: function(data) { | |
var data1 = data; | |
$.ajax({ | |
url: "blah2.html", | |
success: function(data) { | |
console.log("callback hell"); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData() { | |
$.get("example.php", function(response) { | |
var data = response; | |
$.get("exampletwo.php", function(responsetwo) { | |
var datatwo = responsetwo; | |
$.get("examplethree.php", function(responsethree) { | |
var datathree = responsethree; | |
... | |