Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

?? Writing databound recordNumber ??

3 views
Skip to first unread message

Robert Gibbens

unread,
Apr 12, 2001, 3:04:09 PM4/12/01
to
I want to write out the current recordNumber from a databound table into a
cell in the row. I am able to use
"alert(window.event.srcElement.recordNumber);" and it will alert with "1" or
"2" or whatever record the row is. I can not, on the other hand, do a
document.write(dso.recordNumber) in one of the cells of the row.

Does anybody know what I am doing wrong? How can I achieve this?


<TABLE DATASRC='#xmldso' DataPageSize="10" BORDER =1 CELLPADDING=3
id="MyTable">
<THEAD>
<TR>
<td onclick="ApplyStyleSheet(sortAlternate_ID.XMLDocument);"
style="cursor:hand;">Login Name</td>
</TR>
</THEAD>
<TBODY>
<tr>
<TD onClick="alert(window.event.srcElement.recordNumber);">
THIS WORKS
<script language="Javascript">
var oRecordSet = xmldso.recordset;

document.write(xmldso.recordset.fields("Alternate_ID").value); // THIS
ALMOST WORKS, IT WRITES OUT THE SAME VALUE IN

//EVERY ROW
document.write(oRecordSet.recordNumber); // THIS
DOES NOT WORK
</script>
</TD>
</tr>
</TABLE>

0 new messages