Hey, I'm currently working on coding a layout I designed recently. I have a featured area where there are 4 tabs and an area for content I've managed to use the prototype framework to bring the content in with ajax and change the selected tab to the select tab css class I'm wanting to change the css class of the tab back to un-selected when another tab is selected but I'm having trouble. Can anyone help me?
My prototype code:
It changes to the selected tab class, but i need a way of changing it back when a new tab is selected.Code:function loadTab(name) { new Ajax.Request('?tab=' + name,{ method: 'get', onSuccess: function(transport) { $('feat_tab_' + name).className = 'feat_tab_s'; $('feat_cont').innerHTML = transport.responseText; } }); }
Thanks, Jamie.






Reply With Quote



I personally haven't checked out the Dojo framework, so I might do so now..
