Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing data stored in a table

Status
Not open for further replies.

Mannga

Programmer
Jun 21, 2002
85
GB
I am trying to access some data that is populated into a table which is embedded in another table.

I have the code to access the data if it was not embedded in the second table.

Here is my HTML

<TABLE id=&quot;tblCaseReas&quot; border=0 cellpadding=2 cellspacing=3 width=100%>
<%With grsAssignedCases
Do While Not .EOF%>
<TR bgcolor=#679CA7>
<td>
<table id=&quot;tblCaseDetails&quot; border=0 width=100% bgcolor=#ffffff>
<tr>
<TD name=&quot;pt_Info&quot; class=&quot;tdLTBR1&quot;>
<%= grsAssignedCases(&quot;pt_Info&quot;)%></TD>
<TD class=&quot;tdSurname1&quot;>
<%= LCase(grsAssignedCases(&quot;pe_Surname&quot;)) %></TD>
<TD class=&quot;tdForename1&quot;>
<%= LCase(grsAssignedCases(&quot;pe_Forename&quot;)) %></TD>
<TD name=&quot;cs_ClinicAccount&quot; class=&quot;tdReas1&quot;></TD>
</tr>
</table>
</td>
</TR>
<%.MoveNext
Loop
End With
%>
</TABLE>

I need to be able to access the info stored in the cell &quot;pt_Info&quot;.

I have the following code
var Cases = document.all.tblCaseReas.rows;
Cases[0].cells[1].innerText

Which worked before we added the embedded table.

any help on this would be greatly appreciated.
Thanks,
Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top