I have recently discovered this wonderful tool called AJAX that uses a combination of JavaScript, HTML, and one (or more) of these three: PHP, ASP, ASPX. AJAX is asynchronous JavaScript and XML and it became popular in 2005 because Google used it to give suggestions to their users while they searched. AJAX is not a new programming language, instead, it takes advantage of the native XMLHttpRequest object in most browsers (save for IE 5 and 6). Now, before you proceed, You should at least know JavaScript and HTML/XHTML (I will assume you do). Do not worry if you know those, because AJAX is based on the internet standards, so there will be nothing new to learn.
WHY AJAX IS GOOD:
Before AJAX, when someone wanted to submit a form to a PHP page, the form would send them to the separate PHP page on the server, and then the user would have to be re-directed back to the previous page. But with AJAX, the page can send a request to the remote server, or to a local page – discreetly. The user will not notice anything, because AJAX sends the request, then processes the result without changing URLs or refreshing any pages. AJAX is all about more user-friendly and better internet applications. Many people do not like the internet because the applications on the internet are clumsy, not user friendly, and relatively poor. With AJAX, you can change these things.
HOW TO USE AJAX:
AJAX is very easy to use. Let’s start with a simple form:
| CODE: |
<input type="button" value="Get Time"onClick="makeAJAXRequest()"/>
|
Read more »
Filed under: Important Info | 1 Comment »