[eluser]Nick Husher[/eluser]
If the example code I gave you was returning what you were looking for, what you need to do is set up an event-driven interface for returning data. You can't just say, "Get me this data off the server" because that's not the way the system works. You ask for the data, and some interval later, it is delivered. You set a callback event to handle the new data and delegate the response to other parts of the system. If you're looking for a way of returning server data asynchronously, generally the workflow is this:
1. Fire off request and wait for callback
2. Set "loading" state in your view.
some amount of time passes
3. Callback function is executed:
4. Callback function parses response
5. Callback function unsets the "loading" state from your view and displays new data.
It's a little bit like a multithreaded application, in some sense.