AJAX Fundementals The history the definition and how it can be used

an article added by: Donna G at 06132009


In: Root » Computers and technology » AJAX » AJAX Fundementals The history the definition and how it can be used

French Spanish Portuguese Italian German Japanese Chinese Korean Russian Arabic

The term "AJAX" was created by Jesse James Garrett, who coined the term in 2005 when he decided that he needed a shorthand term for the suite of technologies that AJAX is composed of. However, although Jesse James Garrett came up with a simpler way to express the idea, the actual application and the codes that make them up had already been in use for many years, and asynchronously loaded data had been a well known and heavily used concept since the mid-nineties. Since then, many big name search engines have started to incorporate AJAX into their websites and tools. This is not surprising because although every website requires a certain amount of bandwidth to function, with AJAX, the amount of bandwidth that is actually used up is far smaller. This makes it easier for people to access your webpage, and gives you more legroom to add other pages to your website as you see fit.

The framework for AJAX is made up of many parts: HTML -- or hypertext markup language -- is the very base of all web pages. It is the foundation that all websites are built on. Next AJAX utilizes XML -- or extensible markup language -- which is thought to be a general purpose language. It is a standard script that facilitates the sharing of information via the internet. Cascading style sheets are also very important to AJAX as they are a highly mutable way to display the information received from the HTML and XML codes. JavaScript is a scripting language which is used to allow access to objects within other codes, and is most commonly used to add a bit of spice to a website. Finally, AJAX uses XMLHTTPRequest, which brings it all together by enforcing the asynchronous exchange of data between JavaScript, XML and HTTP (also known as hypertext transfer protocol), and thus establishing a seamless connection between the server and the client sides of a web page.

As for its uses, basically, what AJAX does is speed things up. Web applications are fun, and add an extra bit of panache to a website; however, they can also bog things down, and in a lot of cases, deter visitors from staying on a site, or ever visiting it again. That is where AJAX steps in. AJAX integrates the content and data of Web applications with HTML and CSS; XHR, IFrame, or expertly placed script tags; and DOM accessed with JavaScript to create a stylish and seamless display. This seemingly massive amount of code runs in the background, while all the visitor sees is the outward design.

The idea that AJAX is complicated is only partially true. If you are starting from scratch, without any knowledge of programming, then AJAX can indeed be very difficult. However, for the seasoned developer, AJAX is nothing new; it is simply a pre-existing set of standards put together in a new way. Knowing this, the question remains: what can you actually do with AJAX? Well, you can do practically anything, but most people feel it is best used to enhance the look and the features of a website without weighing it down. One example would be to create a simple chat room that runs smoothly in the corner of a website. You can also use AJAX to create website tabs, slideshow image galleries, and dynamic menus.

However, despite all of the marvelous things that you can do with AJAX, many people still feel that it leaves quite a bit of room for improvement. For starters, AJAX pages do not record history, and thus the back and forward buttons become defunct. Also, it is a step behind when it comes to accessibility given that it does not function on PDAs and cell phones. One of the more major problems that people have while using AJAX is that it has a hard time functioning with search engines. These problems stem from the fact that the data shown on AJAX applications are displayed dynamically. With no keywords or URL for search engines to notice, these websites are generally ignored by the engines, and thus, by potential visitors. With all of these issues, many people are still hesitant to use AJAX on their website. However, those who support the use of AJAX feel that comparatively speaking, these problems are a small price to pay for an application with so many great uses. In addition to that, those with a passion for the AJAX application are working on solutions to these problems, and troubleshooting for any future setbacks.

Whether good or bad, AJAX is definitely making its mark in the programming world. This intricate application can potentially make things simpler in the long run. But whether AJAX is fully embraced and becomes a matter of course for website builders and owners, or it simply fades into the background is something that only the future can truly tell.

legal disclaimer

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

related articles

1. The Easiest Way to Get Started with Ajax and REST
The Easiest Way to Get Started with Ajax and REST Problem You want to know the best way to get started with writing Ajax and REST. Solution When developing an Ajax and REST application, you must decide on the tools and frameworks you’ll use. The choice is simple: Use whatever you’re using today, and write some Ajax applications. You don’t need to change the tools you’re using today. Whether you’re using ASP.NET, JavaServer Pages (JSP), PHP, Ruby, or Python, you...

2. Testing a Dynamic Contract with Ajax
Coding the Contract Using Test-Driven Development Techniques Coding the contract using agile and test-driven development techniques requires writing a number of tests and implementing aMock URL layer. Problem You want to code the contract using these development techniques. Solution To demonstrate, let’s define a use case, implement the use case as a contract, write a test case(s) to implement the contract, implement the contract in the Mock URL, and finally...

3. Testing the Client Side Logic
Problem You want to effectively test your application’s client-side logic. Theory Testing GUI code tends not to be a productive task because of the complications that arise. The main complication is how to test the correctness of a user interface. Imagine a situation where clicking a button causes a table to be filled with data. Now imagine that when a check box is checked and the button is clicked again, a different table is filled with content. The fact that clicking the same button results in two ...

4. Understanding JavaScript and Types
Understanding JavaScript and Types Problem You want to work around the fact that JavaScript does not have types declared for its variables. Theory JavaScript code does not have any variables with a declared type. The lack of typed variables is apparent when you declare functions. That said, not having typed variable declarations does not mean JavaScript has no types or no type safety. Let’s start out with the simple declaration of a function, as illustrated by the following ex...

5. Coding Using Conventions and Not Configurations
Coding Using Conventions and Not Configurations Problem You want to make your JavaScript constructs more efficient by applying the Rails “convention over configuration” principle to them. Theory You may already be familiar with the programming platform Ruby on Rails, which is used to build Web applications. The focus of this recipe is not Ruby on Rails, but one aspect of Ruby on Rails namely, convention over configuration (see http://en.wikipedia.org/wiki/ Ruby_on_Rails for m...

6. Advantage of parameterless functions in JavaScript
Using Parameterless Functions Problem You want to take advantage of parameterless functions in JavaScript. Theory JavaScript functions for the most part have parameters. You may think that the previous sentence states the obvious after all, without parameters, what data could be passed to a function? JavaScript has the ability to declare functions that have no parameters, even though the caller of the function has passed parameters to the function. For example, let’s look at...

7. JavaScripot Functions
Treating Functions Like Objects Problem You want to take advantage of the fact that functions are objects (remember, everything is an object in JavaScript). Theory Many people think that a function is some keyword used in JavaScript. A function is also an object that can be manipulated. Knowing that a function is an object makes it very interesting from the perspective of writing JavaScript code, because the code can treat the function like another other object. This mean...

8. Implementing an Error and Exception Handling Strategy
Implementing an Error and Exception Handling Strategy Problem You want to implement a clean error and exception handling strategy in your applications, to make them run more smoothly. Theory Of course, you might argue that one error is a dialog box and the other is generated in the JavaScript console. The fact that one browser uses a dialog box to show an error and the other does not is a browser issue, not an error issue. A concise way of classifying the two errors is to ...

9. Understanding the Behavior of Variables When Implementing Recursion
Understanding the Behavior of Variables When Implementing Recursion Problem You want to implement recursion in JavaScript, and you also want to understand how variables will behave under those circumstances. Theory In JavaScript, you do not need to declare the variable type, or even declare the variable. For example, the following code works perfectly: if( counter == 1) { buffer = "counter is 1"; } document.getEle...

10. Using Functions to Initialize and Make Decisions JavaScript
Using Functions to Initialize and Make Decisions Problem You want to use functions to initialize and make decisions. Theory Usually when you write a piece of code where a change of logic needs to take place based on a context, you use a decision structure. For example, say you are implementing a light switch using a program. You turn on the light if the light is off, and you turn off the light if the light is on. The behavior of the program is determined by the conditions. One example behavior t...