Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

What is AJAX?

What is AJAX?

One of the most recent buzz words going around the Internet is "AJAX". What is AJAX? Is it a new and extremely powerful programming language? Is it an all-purpose cleaner? In plain-simple English, what exactly is AJAX? Well it's neither a new programming Language nor an all-purpose cleaner, it's mainly a new way of using the programming languages we already know.

In the early days of the Web, the only way to make a webpage interactive was for the user to enter data into the webpage and submit it back to the server. The server would respond by creating a new webpage, which it would send back to the user, the user's browser would load the new webpage.

DHTML (Dynamic HTML), introduced in 1997, made it possible to create interactivity on the client machine. Data and Java Script programming is sent in or along with the webpage. Java Script is used to detect events on the webpage, such as user clicks, and in response, use the XML data to modify HTML elements on the webpage. The user could interact with the webpage without having to submit it back to the server, and without having to load a new webpage. This gave the user quicker response and saved a lot of Internet bandwidth and server processing time.

The problem with DHTML is that you can send only a limited amount of data along with the initial webpage. For example, you can't send an entire database with millions of records. That would take too long. So if the scope of the user's interactivity went outside of the data sent with the initial webpage, you still needed to make a request to the server and load the new webpage returned by the server.

AJAX (Asynchronous Java Script and XML) uses Java Script in a webpage to submit requests to the server, receive XML data from the server, and modify HTML elements on the webpage, without having to load a new webpage. This greatly expands the functionality of the users webpage without the overhead of loading a new webpage after each request to the server.

AJAX functionality became available in 1999 when Microsoft implemented the XMLHttpRequest ActiveX Object in Internet Explorer 5. The Mozilla project followed by implementing the XMLHttpRequest functionality natively in the Mozilla 1.0 browser.

Creating an instance of the XMLHttpRequest object for Internet Explorer:

var req = new ActiveXObject("Microsoft.XMLHTTP");

Creating an instance of the XMLHttpRequest object for Mozilla:

var req = new XMLHttpRequest();

Creating an XMLHttpRequest object requires a branch structure (not shown) to acomodate for browser differences in the way the objects are created.

RSS Feed RSS Feed

Follow Stephen Bucaro Follow @Stephen Bucaro

Web Design Sections

WordPress Security

90% of business websites have been hacked in the last 12 months. This ebook gives you a complete checklist of things you can do to secure your website without hiring a pricey web developer.

Reader John M Stokes says, "This book is a great resource for security on Wordpress and also does it very quick without having to be a long and boring. Truly worth getting to make sure your Wordpress site is as safe as possible. Click here for more information.

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268