using java to get table rows (jsp and html)?
807569Aug 30 2006 — edited Aug 30 2006I was wondering if there is any way to count rows from a html-table?
I want to know the number of rows created, just after it has been made. So that I can use this number 'for' creating my next table.
Have got this to work by using javascript code:
function test2()
{
if (!document.getElementsByTagName || !document.createTextNode) return;
rows = document.getElementById('spesifikasjonsTabell').getElementsByTagName('tbody')[0].getElementsByTagName('tr');
antallRader = rows.length;
document.test.hoyde.value = antallRader;
return antallRader;
}
, but this only generates on the clientside; which is not what I want.
I got a webpage, that uses html and jsp. After the generation of a table - which has an unknown numbers of rows, because of several underlying tests - I'd like to retrive how many rows that was generated before I proceed with my next table.
Is there a good workaround to this problem?
P�l
Message was edited by:
paulOlsen