When looking at tabs in dojo, I thought it was a hassle to write all the tab content into the page... that is write *each* tab's content into the correct place in the page content. I thought it would be easier to say: if you click tabX, then call a function to load it's content. The goal here was to allow the tab content to be loaded by an AJAX call. Creating the result took me down a path to two solutions that provide the same functionality. This page will highlight the two approaches. If you're in a hurry, jump over to mattchase.us/dojo/tab1.html and just view the source. [more to come] |
dojo >