Sending Email with AJAX: Building a Small Application
AJAX has become ubiquitous, thanks to the fact that it gives web developers the ability to create applications that make http requests without reloading the page on which the application is running. It is also extremely versatile and powerful. This article, the first in a series, will start you on the way to creating an AJAX-based email application.
Sending Email with AJAX: Building a Small Application - Working with building blocks: defining the (X)HTML markup for the email application (Page 4 of 4 )
Since I’ve already defined the CSS styles responsible for achieving the visual appearance of the user interface that integrates the application, the only remaining step that I need to complete this project is to write the (X)HTML markup for the corresponding web page, so both document structure and visual presentation are hooked up to each other. Having said that, here is the underlying markup, which completes the required pieces for rendering the user interface. Take a look:
Now that you know what the (X)HTML markup of the email application looks like, let’s take a final step and put it together with the CSS styles that you saw earlier, so you can have a clear idea of how the complete presentational layer is implemented. Here’s the full source code for the user interface, which will be used by the AJAX-driven email program:
Here I’ve provided you with the complete source code that renders the user interface of the AJAX-based email application. However, if you don’t feel inclined to wait for the upcoming articles of the series, you can download the full code of the AJAX email program here or at the beginning of this article.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.