rssSearch: Search an RSS-Feed
A search-function is a really useful function for a site with a lot of content. This however a few prerequisites, like having a database and enough access to implement a server-side script.
Missing one of the prerequisites doesn't have to mean that no search function can be offered. This example implements a search function client-side, by looking through a site's RSS feed.
Search through an RSS feed
Type a word in the example below. Using AJAX, the RSS feed is loaded and any item which matches the search string is displayed in paged results.
If no results show up, try looking for "e".
The results are pre-formatted in javascript. Using the commented HTML as a prototype is a possibility should the need occur.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.rsssearch.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: rssSearch.html
- Example Stylesheet: rssSearch.css
- Example XML: rssSearch.xml
Comments on this Article