Using YUI TabView with Cookie

This example pairs YUI TabView's "build from markup" approach with the Cookie Utility to restore the selected Tab's state after the TabView instance is rendered. A slightly better approach would be to read the cookie on the server side while creating the TabView's markup and designate the selected Tab via its CSS class; this example, however, shows how to approach the problem entirely on the client side.

Tab One Content

Tab Two Content

Tab Three Content



ericmiraglia.com