dynamic list demo
how would you go about showing one image on list view and a different image in details page?
im parsing a xml file.
<root>
<item>
<title>xxxxxxxxxx</title>
<thumb>http://image.png</thumb>
<link>http://someone.com.</link>
<image>http://image1.png</image>
</item>
so i want the <thumb> image in list view and the <image> in details page. i can do either one but am unable to do both together.
Or is their a way to just show the top 150px of image in list view then show full image in details.
js
$(clone).attr(“data-listitem-index” , i);
$(“div[id*=txtTitle]” , clone).text( item[“title”] );
$(“div[id*=txtDesc]” , clone).text( item[“description”] );
$(“div[id*=htmDesc]” , clone).html( item[“description”] );
$(“img[id*=imgImage]” , clone).attr( “src” , item[“image”] );
$(“div[id*=txtTitle]” , clone).css(“overflow” , “hidden”);
$(“div[id*=txtDesc]” , clone).css(“overflow” , “hidden”);
var title = item[“title”];
var desc = item[“desc”];
var image = item[“image”];
$(“#m1-view_game-txtAppTitle”).text(title);
$(“#m1-view_game-txtAppType”).html(desc);
$(“#m1-view_game-img”).attr(“src” , image);
title: $this.find(“title”).text(),
desc: $this.find(“description”).text(),
image: $this.find(“image”).text(),
thnx in advance