Reply to Re: table with no IDs

Your name:

Reply:


Posted by David Dorward on 10/09/08 11:54

bradley_d_watkins@hotmail.com wrote:

> Is there any way of accessing the tables appearing on a web-page that
> would return an array of their ID's in an array type form?
> I have to hide some of their rows, but dont know what their ID's are!!

document.getElementsByTagName('table') will return a collection of HTML
elements. No need to deal with ids.

> The problem is that i have to access a dynamically changing web page
> and have to know the tables ID's. However the trick comes in when none
> of the tables were given ID's.

You can't get an id from an element that doesn't have an id.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация