Coding Demo: AJAX

A small demo using AJAX.

AJAX (Asynchronous JavaScript and XML) is a way to update part of a web page, without reloading the entire page. The data is still delivered dynamically from a server, usually reacting to user input, resulting in an intuitive and interactive user experience.

Asynchronous allows other JavaScript code to continue to run while waiting for the server’s response. This helps to prevent the page from stopping or hanging while being loaded or while running other scripts such as animations.

JavaScript is used to create and send the call to the server, receive the data returned and use it as appropriate.

XML has been the traditional format in which the data is returned. However, the newer JSON (JavaScript Object Notation) format has gained acceptance as a viable alternative. JSON’s main advantages are that it is smaller and easier to parse than XML, but both share a common advantage in that they are easily read by humans.

The data may also be returned as a text string. This could be a simple sentence or two, or a fully-formatted HTML structure ready for insertion directly into the page. Each of these formats have their advantages, and which you choose to use will depend on the requirements of the project.

The following example will automatically suggest countries and their 2-digit ISSO code as you type into the entry box. Or, select the “Code” button and it will look the countries up by their 2-digit code. Note how both elements react to your input.

Country: ISSO Code:
Type into the field.

As you can see, this can make your site a lot more responsive and helpful!

Please click on the following links to see each in action.

ExamplesAJAX(more to come!)

What’s in an Acronym?

The interactive world is full of acronyms:

to name just a few. It’s easy to throw them around to make yourself look good, but do you really know what they mean, or which ones are important to your needs?

I can help you to make sense of it all, explain what they mean, and determine the right solutions for your projects. Drop me a lne and we can get at it ASAP!