If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

identifying values in TABLE cells

Have a table with the first column being option buttons. A user clicks on
one to identify the row of data they want. What I want to do is once they
pick a row to then identify the value in the third cell on the row they chose.
I know this can be done using a loop.
(The table is dynamically built using ASP so when the option button TD is
built, an onClick event is added to the code.)

Can you identify the specific row and gets a cells value without going thru
a loop and checking each row until you find the checked one? Sometimes the
table could have a large number of rows and there's too much delay waiting
for it loop.

Re: identifying values in TABLE cells

for the onclick, window.event.srcelement should give you the TD, then you
can reference the TR via window.event.srcelement.parent and then the other
TD's in the row via window.event.srcelement.parent.children.

I think that should work.

steve

"russ" <rusjenandall@netzero.net> wrote in message
news:392aaf5d$1@news.devx.com...
>
> Have a table with the first column being option buttons. A user clicks on
> one to identify the row of data they want. What I want to do is once they
> pick a row to then identify the value in the third cell on the row they
chose.
> I know this can be done using a loop.
> (The table is dynamically built using ASP so when the option button TD is
> built, an onClick event is added to the code.)
>
> Can you identify the specific row and gets a cells value without going
thru
> a loop and checking each row until you find the checked one? Sometimes the
> table could have a large number of rows and there's too much delay waiting
> for it loop.
>
> Could the onClick event be used?
>
> Thanks for any help.
>