Home arrow JavaScript arrow Ajax Progressive Enhancement: Reading Remote Files

Ajax Progressive Enhancement: Reading Remote Files

In this fourth part of a series I show another real-world example of the use of Progressive Enhancement in combination with PHP and Ajax. This example allows users to read the contents of a file and display them on screen, regardless of whether they have enabled JavaScript on the browser. In this particular case, the data is fetched from a simple text file, but it’s possible to use any popular RDBMS instead.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 3
July 19, 2010
  1. · Ajax Progressive Enhancement: Reading Remote Files
  2. · Review: an image gallery with jQuery’s Ajax capabilities
  3. · Using PE when reading remote text files
  4. · Including the jQuery code in a web page

print this article

Ajax Progressive Enhancement: Reading Remote Files
(Page 1 of 4 )

While it’s fair to say that Progressive Enhancement (PE) is not the next big thing that is going to revolutionize the way that websites and applications are developed nowadays, it’s a clever paradigm that allows developers to dramatically increase the accessibility of web pages. Unlike its counterpart, Graceful Degradation, PE permits you to implement a certain number of features which are designed to work on user machines that have minimal hardware/software requirements.

On the other hand, users with more advanced settings will be able to use an “enhanced version” of those features, but in all cases the core functionality is always maintained. This obviously allows you to create better and more accessible web pages. Not surprisingly, the popularity of PE continues to grow, as more and more web designers start discovering its numerous benefits.

Of course, explaining why PE is a good thing without demonstrating how to utilize it in some concrete and realistic use cases is a pretty pointless process. With that idea in mind, in the tutorials that preceded this one I coded some easy-to-follow examples that showed how to use PE when building a simple image gallery. In these examples I combined the functionality of this paradigm with a pinch of PHP and Ajax in one single web application.

Creating the gallery was very educational, even though it was only an introductory example. As you may have guessed, it’s possible to enjoy PE's advantages in many other situations. In this fourth part of the series I’m going to show how to use this approach when reading and displaying on screen the contents of a text file via Ajax.

Do you want to see how this will be done, while preserving the accessibility of the target file? Then jump forward and read the lines to come!

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials