iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

History Of Ajax

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Smrithi Raj

Many a year ago, Jeff Rouyer won the Netscape DHTML competition with his flying dude interface and put DHTML on the map. The winning entry, apart from being 3D in design which up until that point had not been seen on the Web, also had something that was quite uncharacteristic of Web pages.

Most of what you see today on the web in terms of DHTML Widgets can be attributed to a small number of people with Jeff leading the way. Granted there has been a progression over the years, but things like scrollers, tooltips, drag and drop, event handling, dynamic clipping etc were pioneered by Jeff many years before they became popular. For example, the sliding doors technique used in CSS today was used around ten years ago with JavaScript by Jeff. In short the guy is the grand daddy of DHTML and everyone else pales in comparison. I kid you not!

One of the unusual features of Jeff’s Award winning site was than rather than have a user traverse across multiple Web pages which consumes resources by opening separate window instances, Jeff was loading content dynamically into an existing interface. In other words all the content was being loaded into an existing element and all other elements were not being changed or swapped. We are talking pre Internet Explorer 4 days here.

Internet Explorer 4 was released a little later to challenge Netscape's dominance on the web, but it did not have a similar method where content could be loaded directly into a layer element by using layer.load();

As the popularity of Internet Explorer 4 gained it became increasingly important to Jeff to maintain cross browser compatibility and initially created a series of document.write() in an external file to allow content to be imported into a pre-existing html file. Obviously this was resource intensive and he went on to improve this method for Internet Explorer 4 by created a little Java Applet to allow Internet Explorer 4 to pass external content into an existing element.

Not long after that, he thought of the idea of using an IFrame technique where content would be loaded into a hidden IFrame and then sucked back out and into a div element. This was the genesis of what today is known as Remote IFrame Scripting. Remember we are talking close to a decade ago which is a good indicator of how far ahead of the curve Jeff was at the time.

Enter Ajax

Recently Garret Smith of Adaptive Path made a good case for using Asynchronous JavaScript and XML and coined the acronym "AJAX" to represent the notion of Remote IFrame Scripting. It is similar to the Remote IFrame technique in that things are handled on the client side, but as we shall see differs in significant ways.

Ajax is more a natural progression from an existing set of techniques as opposed to being something completely brand new. Yet within that progression, things are markedly different than in previous years in a couple of key areas:

• It provides a mechanism to mix and match xml with xhtml.

• It significantly reduces having to continually fetch things from a server (remote IFrame scripting is reasonably comparable here).

• It overcomes some speed bottlenecks that traditional Web development has fallen prey too. In most instances an Ajax based site will load quicker than a comparable traditional Web site.

• When done well, it significantly reduces initial load times.

Before proceeding, it should be noted that Ajax isn't a panacea. It has some problems that it needs to overcome as it continues to mature. But it is a promising field to be involved within and as the years roll on, it probably will greatly affect the way we think about building Web pages and Web applications.

It also needs to be clear that Ajax isn't a technology as such but rather is a technique that combines well with other technologies and techniques. For example, xml, dhtml, css, xhtml. In fact, Ajax really is DHTML with the xmlhttprequest object thrown in. It is amazing to think how one object can change the whole playing field.

As things currently stand in the Ajax field, we almost have two extremes going on. At one end of the continuum we have developers building all sorts of complicated JavaScript tags that in most instances are unnecessary and are overkill. At the other end of the scale we have these little examples floating around the Web that demonstrate how to load xml into a document or do some Ajax form processing.
What is Ajax?

Ajax itself is a technique, but to use the technique effectively one must become familiar with the philosophy behind the technique. In other words, it is not just the use of the technique that is important, but rather developing a different mindset and approach to Web development that is central.

To date, I have mentioned the term Ajax a number of times but have not described the central object that makes Ajax, Ajax. At the heart of Ajax are the xmlhttprequest object and its Microsoft's activeX equivalent. It is this object that allows data to be transferred asynchronously. In case you are not clear what asynchronous means, it is the ability to handle processes independently from other processes. Synchronous which is the opposite of asynchronous, then means that processes are dependent upon other processes. To illustrate let us use a classical Web page scenario.

Assume we have page A and on this page we have a number of elements, including a couple of script and style tags. With synchronous data transfer the script tag needs to be parsed before the next element is parsed. In this way then the next element to be parsed by the browser is dependent upon the script tag being parsed first. Effectively we are creating a bottleneck of one connection between Web page and browser. Style tags and link elements in the head section of the document create the same bottleneck effect. They have to be parsed one at a time before other page elements can download.

Once they have been parsed then the elements in the body section can use concurrent connections to help speed up the download process. For example, most servers handle between 2 to 4 concurrent connections between web page and browser.

Consequently, this means that 2 to 4 images or other page elements can load concurrently. Yet before that process starts what is between the head tags have to be parsed first, which can considerably delay the loading of web pages. Most particularly if you are using multiple CSS and JavaScript tags. Nearly every Web page and blog on the internet uses this method. It isn't hard to see why this may be a problem in terms of increasing page load speeds.

Asynchronously loading methods differ from this scenario because the loading processes are handled independently of each other and to a significant degree overcomes the bottle of traditional Web page design. As will be demonstrated later, the whole gist of this technique is to use minimal JavaScript initially and then push all the head related tags, including the rest of the JavaScript, CSS etc tags through an xmlhttprequest object. This method uses multiple connections rather than the single one that most traditional Web pages use and consequently speeds things up considerably. More on that later as we go through this tutorial.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Smrithi likes blogging and has a blog on Ajax at http://newtechies.blogspot.com and also a collection of stories at http://storyforsoul.blogspot.com
Article Tags: ajax [See Dictionary], page [See Dictionary], web [See Dictionary]
Got a question about this article? Ask the community!
Article published on September 18, 2008 at Isnare.com
 
Rate this article:

How to Prevent the Noise on Your Car Stereo
Submitted by: Jack Wylde

If you do not know or cannot comprehend what that term means “noise” from your car audio system then you perhaps don’t own a car audio system yet...

Relationship With an it Solution Provider?
Submitted by: Lawrence J. Reaves

IT budgets are tight, in fact SMB’s are only reporting a 56% increase in budgets (before inflation) for the next 4 years (2009 to 2013)...

Easy Tips on How to Purchase a Cheap Laptop?
Submitted by: Seomul Evans

Ah yes, I want a laptop computer but I'm not going to spend few 1000 dollars for one Well guess what you do not have to...

Choosing a Refrigerator For Kegerator Conversions
Submitted by: Felicia Jenkins

For those who are not in the know a kegerator is a beer dispensing device The keg is kept under refrigerated conditions to keep it chilled...

GBC CombBind C55 Review
Submitted by: Jeff McRitchie

GBC is one of the leading manufacturers of plastic comb binding machines They make both entry-level and advanced machines with units available in every imaginable price bracket...

Reviewing the GBC Comb Bind C95e Electric Comb Binding System
Submitted by: Jeff McRitchie

If you need an electric comb binding machine for your small office, the GBC CombBind C95e is definitely a machine you may want to consider...

Reviewing the GBC Comb Bind C340 Comb Binding Machine
Submitted by: Jeff McRitchie

The GBC CombBind C340 plastic comb binding machine is a relatively new product from the company, which still has the market cornered when it comes to binding machines...

Reviewing the GBC C450e Comb Binding Machine
Submitted by: Jeff McRitchie

When it comes to plastic comb binding machines, it's hard to go wrong with a machine from General Binding Corporation (GBC)...

GBC GL Shredmaster Paper Shredders - Tough Machines For Tough Jobs
Submitted by: Jeff McRitchie

Document security is a very hot topic these days due to the rise in identity theft and the appearance of federal privacy laws such as the Health Insurance Portability and Accountability Act (HIPPA) and the Fair and Accurate Credit Transactions Act (FACTA)...

GBC HeatSeal H100 Laminator Review
Submitted by: Jeff McRitchie

As a reasonably priced small pouch laminator, the HeatSeal H100 is designed for use in home offices or small businesses that occasionally need to laminate small items such as ID cards...

GBC HeatSeal H110 Laminator Review
Submitted by: Jeff McRitchie

If you're looking for a new laminator and you frequently laminate a lot of small items such as business cards, photographs, and bookmarks, you're reading the right review...

GBC HeatSeal H210 Laminator Review
Submitted by: Jeff McRitchie

The GBC HeatSeal H210 is one of the manufacturer's entry-level pouch laminating machines, intended for use by small and/or home offices...

A Review of the GBC HeatSeal H212 Laminator
Submitted by: Jeff McRitchie

Do you need an affordable, easy-to-use laminator for home or office use If so, you're reading the right review because the GBC HeatSeal H212 laminator could be just what you need...

Ways a Camera Phone Can Help in an Emergency
Submitted by: Seomul Evans

In an emergency you will require to allow and welcome help, and later it is over, you will have to return, repair, and rebuild...

Facts About Cell Phones Health Risks?
Submitted by: Seomul Evans

Through the long time, there have been so many rumors concerning the wellness risks of cell phones But we are a society that would almost rather die, than give them up...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy