I'm not sure how useful this is but here is a small addition to your TabbedPane function: // If the current tab is set to active, fetch it's content if ($(id).hasClassName('active')) { new Ajax.Updater(pane, tabs[id], $H({ asynchronous: true, method: 'get', evalScript: true }).merge(args)); }
This is useful when you want all tabs to be dynamic without a default content but you want one of them to load as default. Example: