Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT


TUTORIALS
RSS AJAX JavaScript Ticker
05/13/2009 by Javascriptkit.com


This AJAX ticker may be useful for displaying news headlines or similar content to visitors.

In this tutorial, I'll show you how to combine RSS, Ajax, and JavaScript to create a live RSS ticker. Thanks to Ajax, the conventional roles of server side and client side programming are reversed in an application like this as JavaScript- not PHP- is used to handle much of the work, including parsing the RSS file.

I've learned it's good form to always show your viewers exactly where you're leading them to begin with, so here are a couple of examples of the Ajax style RSS ticker I'll be discussing how to create:

A quick overview of how our Ajax RSS ticker works:

A very simple PHP script is used to get the contents of an RSS file online and save it locally on the server for caching, unparsed in any way.

Ajax is used to fetch the contents of the RSS file produced by the PHP script. JavaScript receives the contents of this RSS file (via Ajax), then parses it using standard DOM methods before displaying the feed in any manner the webmaster desires.

As you can see, the server side script, PHP in this case, does very little of the work. The majority of the workload is shifted to the client side, including much of the interface for customizing the ticker, such as the amount of time to cache the RSS file etc. It's arguably more efficient than using PHP to do all the parsing, though the main attraction for me is that I get to be in familiar territory much of the time, basked in JavaScript.

   Read More...

 Rate this Ajax Tutorials
 Rating: 3.3 out of 7 votes cast

AJAX NEWS
04/25/2006 ThickBox - Show html pages as well as images in Lightbox
04/24/2006 AgileGallery - AJAX Photo gallery for Picasa
04/24/2006 TeamSlide: Online Ajax-powered Web Presentations
04/23/2006 Google Blogoscoped Chat Released as Open Source
04/18/2006 Windows Live Academic Beta is now live !
04/18/2006 Ask Cheggers - Ajax powered chat bot


INDUSTRY NEWS
05/19/2006 Ajax grabs center stage at JavaOne, By Tony Baer
05/15/2006 Oracle to boost AJAX, Java , By Paul Krill
05/13/2006 Open AJAX Group Drafts Development Plans, By Stacy Cowley
05/13/2006 AJAX Powers Interactive Marketing ASP, By AjaxWorld News Desk
05/12/2006 AJAX Experts Tackle Security, Other Issues , By Darryl K. Taft
05/11/2006 Adobe Releases Spry Framework for AJAX, By AjaxWorld News Desk
More 
       

      © 2008 ajaximpact.com. All rights reserved.