PHP and AJAX
2005 will definitely be remembered as the rise of AJAX – the new
development technique that many believe will blur the line between
web-based and desktop applications. This acronym is a label for the
rich, highly responsive and interactive interfaces of AJAX-enabled
applications. It stands for “Asynchronous JavaScript + XML”. AJAX is a development technique that utilizes in a unique way a number of already mature technologies: HTML/XHTML, XML, DHTML, the XmlHttpRequest object, and JavaScript. The AJAX technique was first used after Microsoft implemented Microsoft.XMLHTTP COM object that was part of The Microsoft XML Parser distributive. As an ActiveX object in Internet Explorer 5, it was used to create the famous Outlook Web Access. It is also used in many of the Google applications, including the Calendar and Google Mail. Other labels for the same technology as AJAX are Load on Demand, Asynchronous Requests, Callbacks, and Out-of-band Calls. The core idea behind AJAX is to make the communication with the server asynchronous, so that data is transferred and processed in the background. As a result the user can continue working on the other parts of the page without interruption. In an AJAX-enabled application only the relevant page elements are updated, only when this is necessary.
A simple AJAX example using PHP for the backend script:
|
0 comments:
Post a Comment