3 ms·
From a brief look, they load all of the content initially, and only use checkboxes to filter it when displaying – a click on a checkbox updates the set of crite
by raquo 13y ago
From a brief look, they load all of the content initially, and only use checkboxes to filter it when displaying – a click on a checkbox updates the set of criteria and calls a function to re-populate the DOM with new elements.
They seem to be using Jade templating language to generate the HTML for each course, but it can be done with jquery as well.
If you're looking at techniques for actually loading the content dynamically from the server, check out http://api.jquery.com/jQuery.ajax/ http://api.jquery.com/jQuery.ajax/ and related methods.
If you're looking for some sort of magic that keeps your JS objects and HTML DOM in sync, check out http://knockoutjs.com/ http://knockoutjs.com/ for example.