Hello mrf,
The property selectedIndex returns only the lowest selected index. You have
to walk through the list of children, like this:
for(var i=0;i<listbox1.children.count;i++)
{
if (listbox1.children(i).selected)
{
view.alert(listbox1.children(i).children(0).innerText);
}
}
Best Regards,
Wagner Nitsch Bressan.
On Wed, Feb 3, 2010 at 9:15 AM, mrf <[email protected]> wrote:
> Hi friends., If I want to know the selected item in a list then we hav
> listbox1.children(0).children(0).innerText, ryt..?? Then how could I
> iterate through list for multi selected items..?? I hav tried
> /***********************************************************/
> for(var i=0;i<listbox1.children.count;i++)
> {
> listbox1.children(i).children(slectedIndex).innerText;
> }
> /***********************************************************/
> but not working...???
> So, can anyone suggest how could I loop through list for
> selectedIndex....?????
>
> --
> 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]<google-desktop-developer%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-desktop-developer?hl=en.
>
>
--
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.