Home arrow XML arrow XML in the Browser: Submitting forms using AJAX
XML

XML in the Browser: Submitting forms using AJAX


One of the least user friendly features of most websites is forms. The longer the form, the more annoying it gets. However, a new technology called AJAX (that has nothing to do with household cleansers!) can help.

Author Info:
By: Chris Root
Rating: 4 stars4 stars4 stars4 stars4 stars / 211
April 25, 2005
TABLE OF CONTENTS:
  1. · XML in the Browser: Submitting forms using AJAX
  2. · What's Out There Now
  3. · The XML in HTTPRequest
  4. · HTTP Methods
  5. · Using POST
  6. · Submitting a Form

print this article
SEARCH DEVARTICLES

XML in the Browser: Submitting forms using AJAX
(Page 1 of 6 )

Let's face it. Using forms on the Internet is a drag. This is especially true when the form is really long and spread over multiple pages. Every time you hit the "submit" or "continue" buttons, there is a long user-unfriendly wait.

 

It doesn't have to be this way. A relatively new technology called AJAX (Asynchronous Javascript and XML) can allow an HTML form to submit contents to a server without a page re-load.

 

AJAX opens up enormous possibilities for Web applications simply by allowing HTTP requests to be made in the background asynchronously (while other scripts on the page run and other user activity continues).

 

AJAX Technology

 

AJAX technology is based on a Javascript Object called XMLHTTPRequest. Amazingly enough. XMLHTTPRequest is not a standard part of Javascript or the DOM. The fact that this object is supported by Internet Explorer 5.5, Mozilla/Firefox, Safari 1.2 and Opera 7 is a testament to just how useful this technology can be.

 

The W3C Load and Save Specification allows for similar functionality. Load and Save is not currently implemented in any Web browsers. When it is, however, both Load and Save and XMLHTTPRequest will likely be implemented in most browsers.

 


blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- 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

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 
Support 

Developer Shed Affiliates

 




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