AJAX is a powerful technology. It allows client-side applications to send requests to servers and, when the data comes back (most probably in XML or JSON format), the application can manipulate the DOM and, hence, change the layout and content of the webpage being shown.
AJAX programming can be problematic because of the asynchronous behaviour. Callbacks need to be properly designed to prevent surprises.
The work to do is:
- Make AJAX queries to Last.fm to get the most popular songs of the three existing French artists
- Make AJAX queries to Last.fm to get the three most popular artists in France (as well as their songs)
- Allow the user to enter a country name and displays the three most popular artists in that country as well as their songs. At this point, it’s interesting to understand the difference between normal and AJAX form submission.