2014-06-26, 19:22
I have 2 lists in a window, one list is of concert dates for multiple artists and the other list consists of concert dates for an individual artist.
When I click on an item in the multiple artists list it takes the headliner from that list item and runs a script to fill events for that individual artist in the individual artist list.
The problem I am having is that once the individual artist list is filled and I click on a different artist in the multiple artists list the list disappears for a second or two while the script is running to get the concert dates for the artist clicked. When the list re-appears, for a split second the contents of the previous artist events are shown in the individual artist list and then real quick gets overwritten by the new contents.
How can I make this not happen and have the list appear gracefully? I can't seem to grasp how to format the ClearProperty function for the individual artist list (I think that is what I need to do) in the onclick of an item in the multiple artists list. I have tried for several hours to make it work and searched endlessly but still can't grasp how to do it. I appreciate any help I can get on this or an example... Thanks
Here is the item list for the multiple artists list...You can see on one of the onclicks, I have tried a ClearProperty, but it don't work.
And here is the item list for the individual artist list...
I have included a link to a video of my problem if it will help...
When I click on an item in the multiple artists list it takes the headliner from that list item and runs a script to fill events for that individual artist in the individual artist list.
The problem I am having is that once the individual artist list is filled and I click on a different artist in the multiple artists list the list disappears for a second or two while the script is running to get the concert dates for the artist clicked. When the list re-appears, for a split second the contents of the previous artist events are shown in the individual artist list and then real quick gets overwritten by the new contents.
How can I make this not happen and have the list appear gracefully? I can't seem to grasp how to format the ClearProperty function for the individual artist list (I think that is what I need to do) in the onclick of an item in the multiple artists list. I have tried for several hours to make it work and searched endlessly but still can't grasp how to do it. I appreciate any help I can get on this or an example... Thanks
Here is the item list for the multiple artists list...You can see on one of the onclicks, I have tried a ClearProperty, but it don't work.
PHP Code:
<item id="1">
<label>$INFO[Window(Home).Property(NearEvents.1.Artists)]</label>
<label2>$INFO[Window(Home).Property(NearEvents.1.Date)]</label2>
<thumb>$INFO[Window(Home).Property(NearEvents.1.Artist_Image)]</thumb>
<property name="City">$INFO[Window(Home).Property(NearEvents.1.City)]</property>
<property name="Name">$INFO[Window(Home).Property(NearEvents.1.Name)]</property>
<property name="Description">$INFO[Window(Home).Property(NearEvents.1.Description)]</property>
<property name="Title">$INFO[Window(Home).Property(NearEvents.1.Title)]</property>
<property name="Website">$INFO[Window(Home).Property(NearEvents.1.Website)]</property>
<property name="Headliner">$INFO[Window(Home).Property(NearEvents.1.Headliner)]</property>
<onclick>ClearProperty(ArtistEvents,Home)</onclick>
<onclick>Skin.SetString(name,$INFO[Window(Home).Property(NearEvents.1.Headliner)])</onclick>
<onclick>RunScript(script.extendedinfo,info=artistevents,artistname=$INFO[Window(Home).Property(ArtistEvents.1.Headliner)])</onclick>
<visible>IntegerGreaterThan(Window(Home).Property(NearEvents.Count),0)</visible>
</item>
And here is the item list for the individual artist list...
PHP Code:
<item id="1">
<label>$INFO[Window(Home).Property(ArtistEvents.1.Artists)]</label>
<label2>$INFO[Window(Home).Property(ArtistEvents.1.Date)]</label2>
<property name="City">$INFO[Window(Home).Property(ArtistEvents.1.City)]</property>
<property name="Name">$INFO[Window(Home).Property(ArtistEvents.1.Name)]</property>
<property name="Description">$INFO[Window(Home).Property(ArtistEvents.1.Description)]</property>
<property name="Artist">$INFO[Window(Home).Property(ArtistEvents.1.Artist)]</property>
<visible>IntegerGreaterThan(Window(Home).Property(ArtistEvents.Count),0)</visible>
</item>
I have included a link to a video of my problem if it will help...