- var obj={screenpath:$(this).find("screen").attr("path")};
-
- $(data).find("chapter").each(function loopingItems(value){
-
- var chapter = $('<li class="chaptertitle"><img class="img-swap" src="/images/plus.png" class="img-swap" /><strong>' + $(this).attr("label") + '<\/strong><\/li>').appendTo("#screens")
- if ($(this).is(':parent')){
- var screens=$('<ul><\/ul>').appendTo(chapter)
- $(this).children().each(function(){
- $('<li class="screentitle" onclick="location.href='+obj.screenpath+'>'+ $(this).attr("label") +'<\/li>').appendTo(screens)
so basically what i am trying to do is make a clickable link from the path attribute in my xml that will pop-open a video player. Now when i open that page, the li is there with the chapter titles but it won't open the screens list now. Hope that makes sense....