Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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;
...
function getData() {
$.ajax({
url: "blah.html",
success: function(data) {
var data1 = data;
$.ajax({
url: "blah2.html",
success: function(data) {
console.log("callback hell");
},