PDA

View Full Version : gAjax RSS Feeds Displayer



Stefanou
06-16-2010, 01:08 PM
1) Script Title: Ajax RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.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.

ddadmin
06-16-2010, 11:15 PM
Sure, inside the .js file, try changing the line:


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

to:


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

Stefanou
06-17-2010, 10:55 AM
Worked perfectly. Thank you very much.