[thelist] [SPAM] Re: [SPAM] Re: ajax tabscontent

Anthony Baratta anthony at baratta.com
Mon Jul 10 12:39:07 CDT 2006


> 
> Why not just compare the current location with the HREF? That's what I
> am doing in DOMtab.

While that is one approach, I think the reason is to have the tabs not related to the URL. e.g. on the code demo page, the URL is irrelavent to the tabs being activated. The question was to activate a tab via the URL. Who knows where that URL is coming from, the only thing we can make sure is consistent is a Query String key:value.
 
> Using IDs and classes for data storage is as dirty as using FONT tags.
> When will people learn that you cannot assume markup as CMS and other
> systems will mess around with it?

dotNet uses the ID tag for creating objects out of the elements. IDs need to be unique on a page, so they are inherently useful IMvHO.

Are you saying that the GetElementById function should be avoided? And you should only be drilling down through your code via GetElementsByName or some such DOM walking? Seems to me that IDs are extremely useful (albeit can be over used) - but I'm willing to be enlightened as to otherwise.




More information about the thelist mailing list