Hi Paul,
The granularity of the slider is determined by the number of elements
in the lists - hence feeds with few numbers of items [e.g. Cornish
Features] will only change with a greater movement of the slider.
Currently the slider itself returns values between 0 and 100, which
allows for up to 100 items in each feed - some of these RSS feeds have
only 8 items in.
Cheers
Neil
On 10 Jan 2008, at 20:19, Paul Daniel wrote:
I'm not seeing a replacement of items when I move the slider just a
reduction.
Firefox 2.0.0.11 and Maxthon 1.6.3
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
]On Behalf Of neil
Sent: 08 January 2008 15:17
To: [email protected]
Subject: [backstage-developer] RSS Sliders
We've been developing a prototype interface element for the BBC
which we'd like to release to the Backstage developer community for
feedback and improvements.
http://projects.hinterland.nu/bbc/sliders
It's a simple slider widget which allows for four RSS feeds to be
mixed down into a single list. Two sliders are used, the first to
mix two pairs of feeds into two lists, and the second to mix the two
lists together.
..
The focus is on the BBC website's 'Where I Live' section, and the
aim is to allow users to easily choose a balance of News and Local
Features, as well as balancing the mix between two counties.
Stories are given a value based on their order within the feed, and
as the slider moves across, low value stories from one list drop
off, to be replaced by high value stories from the new list.
Questions include: Is this intuitive? Does the data shift as you
might expect? Are two sliders too complex? Is a slider appropriate
here, or should something else be used? Is the sorting algorithm
right? What should we do about duplicate entries?
..
The application is in two parts, a Perl script which consumes RSS
feeds (using XML::FeedPP) and generates an embedded JSON array
containing the stories from all four sources and their rank.
Secondly there is a Javascript function to combine and generate the
list(s) visible on the page. Since the time course of 'News' and
'Local Features' differ so widely [news changing by the minute,
features dating back weeks] it was not possible to elegantly rank
the lists strictly on their publication date - instead we chose to
simply score them according to their rank position in the original
feed.
In this prototype the source feeds are hard-coded into the script -
however this could easily be changed to use an external list.
Unfortunately the BBC does not have a very RESTful interface to
their local features XML, with no consistency in the URL format
there is no simple programatic way to access all the BBC regions.
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date:
07/01/2008 09:14
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.0/1216 - Release Date:
09/01/2008 10:16