AJAX (web technology)/Definition: Difference between revisions
imported>Pat Palmer (first draft of a (too long) definition) |
Pat Palmer (talk | contribs) m (Text replacement - "Javascript" to "JavaScript") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{Subpages}}</noinclude> | <noinclude>{{Subpages}}</noinclude> | ||
Ajax is | '''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
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.