PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage Re: Getting a table's row number?

Reply

Re: Getting a table's row number?

 
Thread Tools Rate Thread
Old 23-09-2003, 09:54 PM   #1
MD WebsUnlimited.com
Guest
 
Posts: n/a
Default Re: Getting a table's row number?


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
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off