Back to the index of articles and examples

Nested DataTables

Note: A new version of this same application is available here.

Start typing the name of a recording artist in the box above, suggestions should show up right underneath, ordered in decreasing number of published tracks (most popular at the top). You can use the down arrow to go and select any of them and hit Enter when found.

Released albums by that artist will be shown in a table, the latest at the top. Clicking in the [+] sign will expand any of those albums to show its track list. Clicking on the title itself will open up the album description page in a separate tab. More than one album can be expanded at once.

This program uses YQL to fetch the data and also show how to nest several DataTables within a master DataTable.

The artist search only finds complete words, which makes the AutoComplete box seem erratic. This is a limitation in the service that provides the information. Neither YQL, which intermediates the queries, nor this application can improve on the base service.