Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current Record in a Recordset
Message
 
À
07/07/1999 11:06:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00237942
Message ID:
00238331
Vues:
12
>>>
>>> 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform