facebook

Dynamic List Demo

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #349226 Reply

    AdamRogan
    Member

    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&gt;
    <link>http://someone.com.</link&gt;
    <image>http://image1.png</image&gt;
    </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

    #349257 Reply
Viewing 2 posts - 31 through 32 (of 32 total)
Reply To: Dynamic List Demo

You must be logged in to post in the forum log in