how do you get the response back into the instance of the object?
- by randomdev
If you've written a class in JavaScript that calls a remote service's API, and that remote API offers a callback, how do you get the response back into the instance of the object that made the request?
I'll try to give you a very basic example FOO for making cross domain calls to BAR service which offers a callback. Please ignore the usual…