iami
06-27-2009, 12:50 PM
One on my 'challenges' right now is a "waiting list", everything is fine except : I need a way to use java to add row/line 'numbers' in the table of my template report. You see, when someone accesses the page(by script) to look at the waiting list, I want them to be able to see what number they are on the list. Complicating this is that when someone get assigned or removed from the list, I want the numbering to change showing the new listing numbered correctly on refresh of the page.
So I am thinking that a java script, that checks if table row exists and sets that the first cell (td) of that one equal 1 and then increment for each additional table row, until it reaches end of table.
Make sense ? My lists are kinda long ( 60 to 80 lines) so if had to reset the number on each record manaully each time someone changed position I would have to correct that many records individually.
Any help would be appreciated , point me in the direction of something that exist or maybe suggest an alternative ? Oh I'm not good at java at all, I normally use canned applets/scripts.
Tom Rector
So I am thinking that a java script, that checks if table row exists and sets that the first cell (td) of that one equal 1 and then increment for each additional table row, until it reaches end of table.
Make sense ? My lists are kinda long ( 60 to 80 lines) so if had to reset the number on each record manaully each time someone changed position I would have to correct that many records individually.
Any help would be appreciated , point me in the direction of something that exist or maybe suggest an alternative ? Oh I'm not good at java at all, I normally use canned applets/scripts.
Tom Rector