Hey,....I saw your posts in the other forums. I can't say anything definite about the popularity of the Yahoo Connected platform. Certainly support is dificult to come by. Devici and some others used to offer some free code on their site but it's since become paywalled. My client has requested develpoment on this platform solely in the name of market permeation; despite Yahoo's boasts of a install base in the millions, they are not expecting much in terms of users.
Your issue is happening because you are referencing the variable playlist.ID. This line:
for each(var playlist in playlists) {
redefines the variable playlist as each item in the playlists array. After the loop has finished, the variable playlist remains as the last array item. Thus, subsequent calls to the variable playlist will always be tied to the last item in the array.
What you need to do is alter your onSelect event. I recommend something like this:
onSelect: function(event) {
var pid=this.id.split('_').pop();
KONtx.application.loadView('view-Player', { PlaylistID: pid });
}
When you use the this keyword in an event like onSelect, onBlur, etc. it references that control. Since you had the foresight to include each playlists ID in an underscore delimited variable, you can easily isolate the desired id by using the Javascript functions split() and pop()
QUOTE(Daniel @ 9 Nov 2011 4:49 PM)
Anyone out there in Yahoo land??