[ZOIS] ZOIS * ZOIS's Home * Blog

Cockermouth's RSS Example

[Picture: Stag House]
More webbish fiddling from Stag House, Cockermouth.

We've been rummaging around Cockermouth's Really Simple Syndication (RSS) feeds, and this is what he found. Actually, this page is intended as a demonstration of how a simple RSS fed page can be built to exploit the JCP Mirror system and its use of RSS.

You'll need to switch on Javascript, or use a browser with Javascript, to see this cleverness.

We've taken the top five (therefore latest) Jobcentre Plus entries for Cockermouth; some Cockermouth news provided by our local paper, The Times and Star, and an National/International top news story. We've then asked your web-browser to fashion the results with our 'navigation' stylings. If you've Javascript enabled, then the page will appear as the RSS feeds are retrieved, so you don't have to wait for the last item to be loaded to start reading. Without Javascript, or with it switched off, the page should appear correctly, if a little less dynamically.

~Z~



~Z~

More Explanation

This page is both rather crude and complicated. It started with fewer than twenty-odd lines of PHP, which we'll happily share with you. It has, however, become rather more convoluted as a Javascript asynchronous element was added to it, and then fixed so that you'ld still get more-or-less the same thing with Javascript switched off. We've now written these these shenanigans up as a Technical Note.

You can also build somewhat more sophisticated things than this using a Content Management System or Blogging software, popular examples being Drupal and Wordpress. We already know, from our server logs, that some of you are doing just that.

This is vaguely another Technology Demonstrator. It is wholly dependent on the Jobseekers Direct web-site and the fine fore-mention news sites for content. It's their content and although they don't actually state it, it's probably their copyright too (so we accept no liability for the content). If anybody is unhappy about the subject-matter of this Demonstrator let us know and we'll happily take it off-line.

Updates

We've had a bit of feedback, not a lot, but enough to make us do stuff ...

Reworked and Reformatted
Following the release of the Technical Note, this page was revisited. It had gotten rather wordy, and the interesting technical bit occurred below the bottom margin, unobserved. The text, including this Updates section, has now been shuffled around to bring these important and illustrative things to the fore. 2011-07-03

A Generalised Version of this Page
An anonymous reader contributes:

"That's cool, but a bit 'Cockermouth'. What about a similar page for my somewhat larger and more important town?"

The Author replies: "How about: Blackpool * Birmingham * Borehamwood * Chester * Dunstable * Edinburgh * Egham * Exeter * Glasgow * Harrogate * Hatfield * Hursley * Kidsgrove * Leeds * Liverpool * Lytham St. Annes * Malmesbury * Manchester * Milton Keynes * Newcastle Upon Tyne * Poyle * Preston * Southend * Sheffield * Telford * Winchester.

"Once on that page there's a search form for fine tuning and you can bookmark your favourite. The somewhat generalised approach means no localised News feed or picture, but I'm sure you get the idea". 2011-05-17

~Z~


Generated 2012-05-19
$Id: crsse.php,v 1.13 2011/08/15 13:37:47 sullivan Exp $


Contact ZOIS * Author * Copyright