hello
i tried to scan my youtube videos name and length from youtube, so i found an ul tag which contain much li tag..
i used this formula to point li elements:
$lis=_IETagNameGetCollection($ul,"li")
after i found the ul..
so i think this lis is a collection of all li tag in ul tag! right?
so why is:
$counter=0
for $li in $lis
$counter=$counter+1
next
in this formula counter is 1, and during 1 cicle will list all li element instead of 1 li element! ewhy???
i thought the foreach statement will add me one by one the li elements from collection, but no.. by cicly counter i can see the cicle run once and this lists all li in 1 ciclye instead of 1 li per cicly.. i wanna handle 1 li per cicle.. what should i do?
i tried to scan my youtube videos name and length from youtube, so i found an ul tag which contain much li tag..
i used this formula to point li elements:
$lis=_IETagNameGetCollection($ul,"li")
after i found the ul..
so i think this lis is a collection of all li tag in ul tag! right?
so why is:
$counter=0
for $li in $lis
$counter=$counter+1
next
in this formula counter is 1, and during 1 cicle will list all li element instead of 1 li element! ewhy???
i thought the foreach statement will add me one by one the li elements from collection, but no.. by cicly counter i can see the cicle run once and this lists all li in 1 ciclye instead of 1 li per cicly.. i wanna handle 1 li per cicle.. what should i do?