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="tblCaseReas" border=0 cellpadding=2 cellspacing=3 width=100%>
<%With grsAssignedCases
Do While Not .EOF%>
<TR bgcolor=#679CA7>
<td>
<table id="tblCaseDetails" border=0 width=100% bgcolor=#ffffff>
<tr>
<TD name="pt_Info" class="tdLTBR1">
<%= grsAssignedCases("pt_Info"
%></TD>
<TD class="tdSurname1">
<%= LCase(grsAssignedCases("pe_Surname"
) %></TD>
<TD class="tdForename1">
<%= LCase(grsAssignedCases("pe_Forename"
) %></TD>
<TD name="cs_ClinicAccount" class="tdReas1"></TD>
</tr>
</table>
</td>
</TR>
<%.MoveNext
Loop
End With
%>
</TABLE>
I need to be able to access the info stored in the cell "pt_Info".
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
I have the code to access the data if it was not embedded in the second table.
Here is my HTML
<TABLE id="tblCaseReas" border=0 cellpadding=2 cellspacing=3 width=100%>
<%With grsAssignedCases
Do While Not .EOF%>
<TR bgcolor=#679CA7>
<td>
<table id="tblCaseDetails" border=0 width=100% bgcolor=#ffffff>
<tr>
<TD name="pt_Info" class="tdLTBR1">
<%= grsAssignedCases("pt_Info"
<TD class="tdSurname1">
<%= LCase(grsAssignedCases("pe_Surname"
<TD class="tdForename1">
<%= LCase(grsAssignedCases("pe_Forename"
<TD name="cs_ClinicAccount" class="tdReas1"></TD>
</tr>
</table>
</td>
</TR>
<%.MoveNext
Loop
End With
%>
</TABLE>
I need to be able to access the info stored in the cell "pt_Info".
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