Introduction to Ajax
Ajax refers to the combination of technologies
which altogether performs the asynchronous JavaScript and XML functions
simultaneously. If you are going for an Ajax interview, you must see Ajax Interview
Questions for more insights. Ajax can be termed as the formulation of
various technologies which form the part of the whole language such as:
· HTML and CSS
which is used for styling and marking purposes.
· Use of
XMLHttpRequest (XMR), IFrame object or dynamic addition of tags to handle the asynchronous
conversation between the server and the browser, in order to avoid repeated
page reloading.
·
JavaScript DOM in
order to interact and display the data on the server.
·
Dynamically
created format for sending the data over browser in the form of plain text,
XML, JSON (JavaScript Object Notation), or pre-formatted HTML.
Working of Ajax
For instance, the following diagram depicts how the conversation is handled with Ajax:
As depicted in the above diagram, whenever
Ajax sends an HTML page to the server, the updated HTML is executed and
returned to the browser without the need to reload the page. This demonstrated
the major function of Ajax which is, to send and retrieve the data from the
server in an asynchronous manner, without causing any interruption to the
ongoing process.
No comments:
Post a Comment