2014-10-29, 23:06
I suppose i'm going to have to break down and ask for help with my problem cause I can't for the life of me figure out how to do something that seems like it should be simple.. I appreciate in advance any help anyone can give me.
I have 2 lists... list 1 is a dynamic list (discography) of an artist. The other list is a dynamic list that the contents change depending on what I click in list 1.
I have fake buttons for each list so that I can control the onclicks of the list contents.
I click on an album in list 1 and list 2 fills with youtube videos related to the album clicked.
I have list 1 with a width and height 250 x 250 so only 1 item is visible, other items won't show until I scroll.
I have list 2 with a width and height large enough to show 3 videos at a time and I scroll that list to view other items in the list.
If I scroll list 2 to item position 6 and click on it and view the video, then go back to list 1 and click on a different album, the contents of list 2 change to videos of the different album that I clicked in list 1 but the position of list 2 is still at item 6....okay... now to the problem that I can't figure out....
After I click on a different item in list one the contents of list 2 change but the position of the list stays at the previous position (6).
I can't figure out how after I click on an item in list 1 to make list 2 set to item position 1 after the contents change.
In order to see the first item in list 2 after I click on list 1 I have to scroll it back. What I want is after I click on an item in list 1 and the contents of list 2 change, I want the position to also change to item 1 in list 2 so that in list 2 the first 3 videos of the list are visible (item 1,2, and 3) not item 6, 7 and 8.
I seems like "Container.Refresh" is what I need but I don't know where to put it. The wiki isn't clear on how to use the function.
it just reads "Container.Refresh" with a description of (Refresh current listing). I tried to add in my fake button control for list 1 an <onclick>Container.Refresh(ID of List 2)</onclick>
but that don't work. I tried Control.SetFocus(ID of list 2,1) but that don't work.
Is Container.Refresh even what I need? and if so what control do I put it in and how to activate the function for the list ID that I need it to act upon? How do I get list 2 to focus back to item position1 after I click on list 1 and the contents of list 2 change? Any help would be much appreciated. thanks.
I have 2 lists... list 1 is a dynamic list (discography) of an artist. The other list is a dynamic list that the contents change depending on what I click in list 1.
I have fake buttons for each list so that I can control the onclicks of the list contents.
I click on an album in list 1 and list 2 fills with youtube videos related to the album clicked.
I have list 1 with a width and height 250 x 250 so only 1 item is visible, other items won't show until I scroll.
I have list 2 with a width and height large enough to show 3 videos at a time and I scroll that list to view other items in the list.
If I scroll list 2 to item position 6 and click on it and view the video, then go back to list 1 and click on a different album, the contents of list 2 change to videos of the different album that I clicked in list 1 but the position of list 2 is still at item 6....okay... now to the problem that I can't figure out....
After I click on a different item in list one the contents of list 2 change but the position of the list stays at the previous position (6).
I can't figure out how after I click on an item in list 1 to make list 2 set to item position 1 after the contents change.
In order to see the first item in list 2 after I click on list 1 I have to scroll it back. What I want is after I click on an item in list 1 and the contents of list 2 change, I want the position to also change to item 1 in list 2 so that in list 2 the first 3 videos of the list are visible (item 1,2, and 3) not item 6, 7 and 8.
I seems like "Container.Refresh" is what I need but I don't know where to put it. The wiki isn't clear on how to use the function.
it just reads "Container.Refresh" with a description of (Refresh current listing). I tried to add in my fake button control for list 1 an <onclick>Container.Refresh(ID of List 2)</onclick>
but that don't work. I tried Control.SetFocus(ID of list 2,1) but that don't work.
Is Container.Refresh even what I need? and if so what control do I put it in and how to activate the function for the list ID that I need it to act upon? How do I get list 2 to focus back to item position1 after I click on list 1 and the contents of list 2 change? Any help would be much appreciated. thanks.