AJAX (web technology)/Definition

From Citizendium
< AJAX (web technology)
Revision as of 09:50, 20 August 2023 by Pat Palmer (talk | contribs) (Text replacement - "Javascript" to "JavaScript")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is developing and not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
A definition or brief description of AJAX (web technology).

Ajax is JavaScript in a web page, making HTTP GET or POST requests, and providing a callback function which gets called back by the web server 4 times. Upon the fourth callback, the response is ready for processing, and at that point, the Javascript callback function parses the answer out of the string sent back from the web server and then updates some part of the web page with the new information. While this is happening, the web page is available for the user to use and interact with; the user only sees the result of the Ajax call and is not blocked from scrolling around the web page and interacting with it while the call is in progress in the background. Using Ajax can make a web page seem more responsive so that it works about as well as a desktop application would.