An AJAX Class: To use AJAX (Asynchronous JavaScript and XML) in a better way

An AJAX Class: To use AJAX (Asynchronous JavaScript and XML) in a better way
Class: clsAjax.js
 

// JavaScript Document
/*
* This file creates the instance of xmlHttpRequest object, sends and
* receives the request and response respectively.
* @Author Udaybhanu Karmakar
*/
/*
* Static script to instantiate XMLHttp object for different browsers.
*/
 
function ServerXMLHTTPRequest()
{
          this.clientHttpHandler = create();
          this.httpMethod = “GET”;
          this.serverUrl = [...]

Parsing XML File in ASP

Hi If you need to parse a XML file in ASP Code you may use the following:
First we need a XML file named book.xml.

<?xml version=”1.0″ encoding=”utf-8″ ?>
- <configuration>

- <books>

- <book>

- <name>

- <![CDATA[ ASP and AJAX  ]]>
  </name>

- <description>

- <![CDATA[ This is a book for ASP and AJAX ]]>
  </description>

- <author>

- <![CDATA[ Author 1 ]]>
  [...]