It took me quite a while to complete this because of a few issues:
- Before using
$.whenI’ve had issues with the AJAX calls returning undefined. For some reason it took me longer than expected to understand how to do this correctly. For clarity’s sake, I still don’t understand promises.
- I’ve had problems with the
htmlstring not re-setting within the loop. I’ve managed to fix it and somewhat understand the problem but have no understanding of the behavior. (Before,
var html = "";was inside the FOR loop and was causing issues)
Project is here. Feedback is very welcome!