XML
  Home arrow XML arrow Take AJAX to your Email Inbox: Developing ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

Take AJAX to your Email Inbox: Developing the Client-side Application Layer
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2006-04-05

    Table of Contents:
  • Take AJAX to your Email Inbox: Developing the Client-side Application Layer
  • Connecting to the mail server: defining the "sendHttpRequest()" function
  • Collecting connection data: defining the "getFormValues()" function
  • Displaying email messages: defining the "fetchMessages()" function
  • Initializing the POP3 client: defining the "initializeUserPanel()" function
  • Integrating the POP 3 client: listing the complete source code of the application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Take AJAX to your Email Inbox: Developing the Client-side Application Layer


    (Page 1 of 6 )

    Welcome to part two of the series “Take AJAX to your email inbox.” If the article’s title doesn’t ring any bells for you, let me tell you that this tutorial series goes through the making of a simple web-based POP3 client, which uses AJAX for pulling out email messages from a given mail server, and displays them right on a web page.

    Introduction

    Just so it's clear and fresh in your mind, in the previous article of the series, I built the user interface of the POP3 client. I defined the (X)HTML markup, and the accompanying CSS declarations, in order to set up the basic visual structure of the mail application. Additionally, I outlined the generic definitions for each of the JavaScript functions that compose the client-side application layer. These are the ones, as you'll see in a few moments, that will be responsible for doing a lot of useful things, such as requesting the PHP file that sends POP3 commands to the mail server, as well as controlling the behavior of each component of the user interface previously defined.

    Before I can get email messages out of the mail server for inclusion in the web page, I must  turn my attention to developing the appropriate JavaScript layer that allows you to add functionality to the POP3 program's front-end. After all, you will want to know how to establish a connection to the mail server from inside the client-side application, and how to add the corresponding behaviors to the navigational buttons that are included as part of the user interface.

    Keeping in mind these concepts, in this second tutorial I'll completely define all the JavaScript functions that you saw in the first article. Hopefully, by the end of this installment, you'll have a working set of functions capable of fetching messages from a given mail server to be displayed on the web document. You should also have a simple navigation mechanism, useful for going back and forth between messages.

    Having established the goal of this tutorial, let's leap forward to coding the client-side layer of the web-based POP3 client. Let's go!

    More XML Articles
    More By Alejandro Gervasio


       · In this second article, all the JavaScript functions that comprise that client-side...
     

    XML ARTICLES

    - Using Regions with XSL Formatting Objects
    - Using XSL Formatting Objects
    - More Schematron Features
    - Schematron Patterns and Validation
    - Using Schematron
    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek