PC Review
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Re: Getting a table's row number?
Forums
Newsgroups
Microsoft Word
Microsoft Frontpage
Re: Getting a table's row number?
![]() |
Re: Getting a table's row number? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Another method would be to create an array then add the row number to the
array if the field is changed var aChanges = new Array(); Then in the table <input type="text" value="Mickey" onchange="aChanges[aChanges.length] = 2" > Then use the table to update the data. -- Mike -- FrontPage MVP '97-'02 J-Bots Plus 2002 End of Summer Sale You Save $20.00 http://www.websunlimited.com FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible ---------------------------------------------------------------------------- -------------------- If you think I'm doing a good job, let MS know at mvpga@microsoft.com "Jim S" <jspinelli@cynatek.com> wrote in message news:086d01c3820d$73e09670$a101280a@phx.gbl... > I have a table of data lets say it has 2 columns and 3 > rows. the table looks a little like this: > ID Desc > 1 Foo > 2 Mickey > 4 Blue Eyes > > If somebody changes a value for the desc column, lets say > Mickey to Micky Mouse, how can I pass to javascript the > fact that I am on row number 2 so I can set a hidden field > which says rowchange=1 for this row? > > Im trying to create a way that I can loop though the table > and determine which rows where changed, then update those > rows. I'd prefer not having to loop through the entire > table and updating all the rows even though they weren't > changed. > > Thanks, > Jim > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

