Posts by João Wiciuk • 13 points
2 posts
-
0
votes3
answers115
viewsA: Multiple callbacks with Javascript
I was able to adapt the solution of Alfredbaudisch. My code was like this: function userInfo(callback) { FB.api('/me', function(response) { callback(response); }); } function userFoto(callback) {…
-
1
votes3
answers115
viewsQ: Multiple callbacks with Javascript
Hey there, guys. I have two callbacks of distinct functions that provide me values that need to be used outside of these functions. Follow the code: FB.api('/me', function(response) {…