Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Cianfarini kevincianfarini

View GitHub Profile
View blah.js
function getData() {
$.ajax({
url: "blah.html",
success: function(data) {
var data1 = data;
$.ajax({
url: "blah2.html",
success: function(data) {
console.log("callback hell");
},
View blah
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;
...
You can’t perform that action at this time.