>>>
>>> lcValue = window.event.srcElement.parentElement.Cells(0).innerText;
>>> alert(lcValue);
>>>
>>
>>
>> I don't mean to be a bug, but I can't get this to work. Whenever I try this command, I get an error "Object Expected". And I don't see the Cells entry in the available options (Intellisense).
>> I can take out the Cells(0), and get the value of the data contained in the current column???
>>
>>
>>Thanks
>>Wayne
>
>Do you have an element inside the table cell that could be firing the click event? parentElement should be giving a reference to the row, which has a Cells collection. Check the tagname property of the srcElement object... I was expecting TD... if it is someting different, then we need to revise how we get a reference to the row object...
>
>Are you using VI?
It is a simple table - three elements with a DATASRC set to the XML Data Island. The onClick is in the table definition...
'TABLE ID ="oList" DATASRC="#XMLPAYOR" CELLSPACING=10 border=2
onclick="fnShowResults()" datapagesize=10'
'THEAD'
'TR'
'TH bgcolor=Aqua'Type'/TH'
'TH bgcolor=Aqua'Remote'/TH'
'TH bgcolor=Aqua'Company'/TH'
'/TR'
'/THEAD'
'TBODY'
'TR'
'TD''SPAN DATAFLD="TYPE"''/SPAN''/TD'
'TD''SPAN DATAFLD="REMOTE"''/SPAN''/TD'
'TD''SPAN DATAFLD="COMPANY"''/SPAN''/TD'
'/TR'
'/TBODY'
'/TABLE'
Yes I am using VI
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown