Results 1 to 3 of 3

Thread: gAjax RSS Feeds Displayer

  1. #1
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default gAjax RSS Feeds Displayer

    1) Script Title: Ajax RSS Feeds Displayer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem: Is it possible to sort date in ascending order? I am using it with Google calendar and it makes more sense to my users to have the dates moving forward. Thanks for a great script.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, inside the .js file, try changing the line:
    Code:
    arr.sort(function(a,b){return new Date(b.publishedDate)-new Date(a.publishedDate)})
    to:

    Code:
    arr.sort(function(a,b){return new Date(a.publishedDate)-new Date(b.publishedDate)})
    DD Admin

  3. #3
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Worked perfectly. Thank you very much.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •