Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to get row index when creating a link to column   Message List  
Reply | Forward Message #30907 of 52116 |
Re: [ydn-javascript] How to get row index when creating a link to column

You don't normally do it that way. You don't put the index into the link
when it is created. You find out the row of the link when it is clicked.
It is easier that way and more predictable. Some operations you do on the
DataTable might alter the indexes if you put them statically. Actually, you
don't even need to put a link, anything you put in the cell will do, most
often an image and when the cell where that element is located is clicked,
you find out which row was it. See "Deleting Records" at
http://yuiblog.com/blog/2007/09/26/satyam-datatable-2

Satyam

----- Original Message -----
From: "riku.tuominen" <riku.tuominen@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Tuesday, May 13, 2008 9:10 PM
Subject: [ydn-javascript] How to get row index when creating a link to
column


>I have a delete link on each row.
> How do I get the row index of particular row when the links are created.
>
> I need that when deleting that specific row when clicking on the link.
>
> I have all code ready, only question is how to retrieve the row index.
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1430 - Release Date: 13/05/2008
7:31




Tue May 13, 2008 10:06 pm

satyamutsa
Offline Offline
Send Email Send Email

Forward
Message #30907 of 52116 |
Expand Messages Author Sort by Date

I have a delete link on each row. How do I get the row index of particular row when the links are created. I need that when deleting that specific row when...
riku.tuominen
Offline Send Email
May 13, 2008
7:10 pm

You don't normally do it that way. You don't put the index into the link when it is created. You find out the row of the link when it is clicked. It is...
Satyam
satyamutsa
Offline Send Email
May 13, 2008
10:06 pm

Thanks Satyam a lot. That was exactly what I needed. Riku...
riku.tuominen
Offline Send Email
May 14, 2008
9:21 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help