AJAX (web technology)/Definition: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Pat Palmer
No edit summary
m (Text replacement - "Javascript" to "JavaScript")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>{{Subpages}}</noinclude>
<noinclude>{{Subpages}}</noinclude>
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 more responsive so that it works about as well as a desktop application would.
'''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.

Latest revision as of 08:50, 20 August 2023

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.