PHP, AJAX and jQuery Features
By jwepman
Introduction to PHP, AJAX and jQuery
PHP, Asynchronous Javascript and XML (AJAX) and jQuery (a Javascript library) comprise the leading technologies in dynamic web development. PHP is a server-side programming language, while AJAX and jQuery lie on the client side to provide interactivity between the server and users of a website. Within these tools, there is considerable variation in programming techniques and best practices which can lead to inconsistent and unpredictable behavior. This, in turn, can seriously affect the operation and user experience of a web application.
Form Validation
JQuery provides customizable form validation libraries for sending data to a PHP backend over AJAX. Form validation is a best practice, because it ensures the data entered by a user is correct and conforms to a standard that the server expects. This is crucial, especially in database applications in PHP, because limitations on data size and type will cause an error for improperly formatted data. jQuery form validation ensures a better user experience and minimizes user confusion over form input.
Asynchronous Data Transfer
AJAX is a Javascript-based data transfer protocol, that allows client applications to communicate with a server page without refreshing the webpage display. PHP is the server-side application for use with AJAX because it allows for easy data formatting in XML or JSON, which in turn, can be rendered on the page by jQuery. Where possible, data that is likely to change, or any user input, should be transferred with AJAX to reduce unnecessary page refreshes. JQuery abstracts away many of the complexities of AJAX protocols, streamlining development.
Dynamic User Feedback
Dynamic user feedback systems provide instantaneous notification of activity, errors and other relevant information. AJAX delivery of notifications sent by PHP applications are often rendered into colored notification bars by jQuery by popular web applications, such as Gmail and Facebook. Webpages remain static, reducing confusion, while notifications provide logical and timely information to the user. This best practice greatly enhances usability and logical cognition of a web application.
Natural Control Mapping
Web users expect to interact with web pages as they would interact with physical objects in the world. Natural control mapping is the term for this concept in the world of cognitive science. JQuery allows straightforward position of control objects, data transferred from AJAX and other web content to enable good control mapping. Whenever dynamic web controls are delivered over PHP and AJAX, they should be positioned logically and evenly with jQuery to maximize user experience.
Web 2.0 Features
Which technology has contributed most to the explosive growth of Web 2.0?
See results without votingComments
No comments yet.