Hi,

I see you append each item to trackList. Now those items will be children of
trackList. To access, let's say, the third item, you would do
trackList.children(2)

The way you made this structure, the div is the first child of the item
itself, so to access the div you would do trackList.children(2).children(0)

Checkbox is the first child of the div, so to access it you need something
like:
c=trackList.children(2).children(0).children(0);
alert(c.value);
(Just a usage example..)

Thanks,
Teo

On Wed, Sep 17, 2008 at 2:11 PM, mohan prasad
<[EMAIL PROTECTED]>wrote:

> Hi Teo / Benjamin
> I'm for you guys to answer ?
>
> On Wed, Sep 17, 2008 at 9:02 AM, mohan prasad <[EMAIL PROTECTED]
> > wrote:
>
>> Hi,
>>       I'm appending the checkbox's and label to an item in listbox from
>> javascript code,
>>
>> for ( i=0 ; i < itemtransList.length ; i++ ) {
>> var object=trackList.appendElement("<item width='100%'><div height='100%'
>> width='100%' cursor='hand' enabled='true' background=\"#000000\"><checkbox
>> name='c\"+i+\"' cursor='hand' y='3' x='1'
>> checkeddownImage='stock_images/checkbox_checked_down.png'
>> checkedimage='stock_images/checkbox_checked_up.png'
>> checkedoverImage='stock_images/checkbox_checked_over.png'
>> downImage='stock_images/checkbox_down.png'
>> image='stock_images/checkbox_up.png'
>> overImage='stock_images/checkbox_over.png' value='false'/><label x='20'
>> wordwrap='false' valign='middle' size='10' width='330' height='20'
>> color=\"#ffff00\">"+ItemArray[i]+"</label></div></item>");
>> }
>>
>> if suppose I have checked 1 or more checkboxes, now how do I get the index
>> value of the checked boxes?
>>
>> Im in a hurry, please help......
>>
>
>
> >
>


-- 
Teo (a.k.a. Teodor Filimon, Teominator)
Site - www.teodorfilimon.com | Blog - www.teodorfilimon.blogspot.com
GMT +2 (or PDT +10)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to