Work so far on mashup project

What I am trying to accomplish is:
1. Make an ajax call to get a list of nearby farmers markets based on zipcode;
2. When that response is received (the promise is fulfilled?), send requests to get details for each market.
3. When all of those responses are received, display all the information about local markets.

I can't figure out how to use promises to wait until all the data is received before displaying it.