Recent Forum Posts
From categories:

Hi Joe

Interesting question and I am not sure if I got you right, but you should already have an index value from each row in the e.index this should have you knowing what row you are at, if you would for instance want to update a database and read / set a url assoicaited with that row, so the questino is if your heigt variable is only for exmaple or if you REALY want to be able to read the props of the row?

I am sorry for not getting back to you earlier as forums like this is not very much read, I will keep an eye out for you though.

Consider taking the TCAD as you would be able to get up to speed in a number of areas like this in no time. ;)


Here's what I want to do: I want to be able to create a whole bunch of rows in a table view, with an image in each row, and when an image of one of the rows is clicked, I want to be able to access the information of the row that the image is in. So, something like:

myImage.addEventListener('click', function (e){
    e.parent().height = 50;

Where upon clicking the image the row it is in will expand. This is just an example.

What I'm ultimately after is being able to access the index of a row an image is in upon clicking the image so that I can get a value from an array that has an associated index. The array has URLs and upon clicking the image I want to open the device's browser to that URL. There are other options, but I want to know if there is any way to access an element's parent information.