Implementing Ajax using PHP
page 1 of 3
Published: 23 Jul 2008
In this article Babita examines what AJAX is, how it works, and how we can use AJAX with PHP. The article describes the steps required to create an XMLHttpRequest object, request and response procedures along with the required code samples.
by Babita Baliarsingha
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 15758/ 25
Article Contents:


AJAX stands for Asynchronous JavaScript and XML. Any server side technology that supports JavaScript also supports AJAX. AJAX is a browser technology, and is therefore independent of web server platforms. AJAX is not a programming language, but a technique for creating better, faster, and more interactive web applications.

If we are using PHP or any server side technology and need to extract data from storage on a server (e.g. a database or a file), we will have to make an HTTP request (either POST or GET) to get the data. Once the data is received the web page will need to be reloaded to show the data. Using AJAX technology we can request and receive the data from the server in background and then display it on the page without a reload. AJAX uses HTTP requests for this. With AJAX, JavaScript communicates directly with the server, through the JavaScript XMLHttpRequest object (XML over HTTP). With an HTTP request, a web page can make a request to, and get a response from, a web server without reloading the page.

View Entire Article

User Comments

Title: Learn About it   
Name: Php Developer
Date: 2010-06-28 2:01:24 AM
This is a nice article, Its using to learn something about it.. Thanks Babita Baliarsingha..,

Do you have a good job.

Thanks a lot..!
Title: nice article   
Name: rupesh
Date: 2008-07-30 2:15:20 AM
nicely explained article babita..just keep it up

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-06-14 3:44:07 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search