Page 1 of 1

select primary key from HTML table?

Posted: Thu Apr 24, 2008 1:20 am
by mozartpena
I have an HTML table which contains a summary of leave requests from employees.

The table contains 5 columns: Request ID, Date Requested, Employee Name, Leave Type, and a "View Entry" button after each row. When "View Entry" is clicked it should display the complete request. This comprehensive report NEEDS Request ID as the primary key to be able to display all the data needed in a popup window.

so is it possible to retrieve request ID from a specified cell (in this case, the first column for request ID). or is there some ingenious array method to be able to extract request ID?

i have had troubles with this for the past days. im turning to you guys for help.
thanks in advance!

Re: select primary key from HTML table?

Posted: Thu Apr 24, 2008 1:44 am
by Kieran Huggins
I'd suggest using jQuery (which is not uncommon for me)

you'd find the row, then the first TD element and get it's contents.

http://jquery.com

Re: select primary key from HTML table?

Posted: Thu Apr 24, 2008 3:19 am
by aceconcepts
How is your data populated?