Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pratik Kothari 10 posts 30 karma points
    Nov 06, 2009 @ 04:12
    Pratik Kothari
    0

    rotating list using xslt macro and javascript?

    I have a news list document type and news item document type.  I want to display the news items on the page in a ticker fashion so that the news items are rotated.  You can see an example here : www.titletracking.com where the testimonials are rotated on the left.

    How can I accomplish this using an XSLT macro and javascript?

    Pratik

  • bob baty-barr 1180 posts 1294 karma points MVP
    Nov 06, 2009 @ 05:01
    bob baty-barr
    2

    check out jquery cycle... i use it all the time!

    http://www.malsup.com/jquery/cycle/

    works great for text and images.

  • TaoistTotty 246 posts 314 karma points
    Nov 15, 2009 @ 13:36
    TaoistTotty
    0

    I have tried to use this but keep on getting an object reference error in the javascript.

    Where is a good place to start looking for a solution to this?

  • TaoistTotty 246 posts 314 karma points
    Nov 15, 2009 @ 13:49
    TaoistTotty
    0

    Should have said that the error is:

    Object doesn,t support this propery or method.

    jquery.cycle.all.min.js

    Line:249

    Char:2

    Code:0

    I hope this helps.

  • TaoistTotty 246 posts 314 karma points
    Nov 15, 2009 @ 14:10
    TaoistTotty
    0

    Firebug is saying it is this line: $cont.innerHeight is not a function

  • TaoistTotty 246 posts 314 karma points
    Nov 15, 2009 @ 14:17
    TaoistTotty
    0

    Found solution - just needed to use the latest jquery.

    I hope this helps someone else, and sorry if I wasted your time.

  • praveen 113 posts 164 karma points
    May 26, 2011 @ 23:43
    praveen
    0

    Hi

    How can we read umbraco page field text from Cycle code.

    Please help

    Thanks

  • Sean Holmesby 61 posts 82 karma points
    May 27, 2011 @ 02:23
    Sean Holmesby
    0

    Hi praveen,

    I think you should make your xslt output all of the data you want to cycle through, and put a wrapper around each section that will be cycled.

    i.e put a div around each block, and a div around that with id ="slider"

    Then you use jQuery to cycle:-

    $(document).ready(function () {

    $(function () {

    $('#slider').cycle({

    fx: 'fade',

    speed: 1550,

    timeout: 8000,

    });

    });

    }); 

    Is that what you're asking?

     

Please Sign in or register to post replies

Write your reply to:

Draft