[thelist] [SPAM] Re: ajax tabscontent

Anthony Baratta anthony at baratta.com
Mon Jul 10 11:59:49 CDT 2006


Christian...

The script he was using does not take into account which tab could be default depending upon URL - the default is hard coded using the CSS style. And while the current script does iterate through the UL container for other purposes, has no way of identifying which tab you would want, if you did try to pick one out - hence the IDs.

Now on third thought, you could pass a "number" via the URL and within the iteration, pick the tab you want, I'm partial to using an  ID, because then you don't have to know which order the tabs are in. If the order changes, the IDs will still work, not so with "pick the third tab you come to" method.




More information about the thelist mailing list