You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36
Original file line number
Diff line number
Diff line change
@@ -69,3 +69,39 @@ Topics included/covered
69
69
70
70
1.[Introduction to AJAX](#1-introduction-to-ajax)
71
71
- 1.1. [What is AJAX?](#11-what-is-ajax)
72
+
- 1.2. [Why use AJAX?](#12-why-use-ajax)
73
+
74
+
75
+
1 Introduction to AJAX
76
+
=====================
77
+
78
+
1.1. What is AJAX?
79
+
---------------------
80
+
81
+
-`AJAX (Asynchronous JavaScript and XML)`
82
+
-`AJAJ (Asynchronous JavaScript and JSON)`
83
+
84
+
The process of **`sending and receiving data on the fly without page refresh/reload`** is known as AJAX
85
+
86
+
- AJAX is not a new programming language - actually its a methodology or concepts or special way to bring JavaScript and XML (JSON) together to produce impressive results
87
+
- AJAX is set of web technologies - just uses a combination of:
88
+
- A browser built-in `XMLHttpRequest object` to request data froma web server
89
+
-`JavaScript and HTML DOM` to display or use the data
90
+
- AJAX allows the web page to `"talk/communicate"` with the server behind the scene (send and receive data asynchronously)
91
+
- AJAX sends, receives and process information to or from the server without page refresh/reload (does not interfere with current web page/data)
92
+
- AJAX minimize the page refreshes, so web sites/pages/web apps shows more fluid/elegent-better experience to users
93
+
- AJAX and JSON together provides the ability to JavaScript code to make HTTP requests to get data and update page content with new data
94
+
- Now a days JSON has replaced XML for the most part and almost all dynamic websites uses/implements AJAX concepts and methodology
95
+
96
+
97
+
1.2. Why use AJAX?
98
+
---------------------
99
+
100
+
- AJAX is prety fast - as it allows you to send and receive data asynchronously without reloading the web page
101
+
- AJAX allows web pages to be updated asynchronously by exchanging data with a web server behind the scenes, this simply means that it is possible to update parts of a web page, without reloading the whole page
102
+
- AJAX is used for building web based interactive applications that process user requests immediately - no page reload to bring data into your application
103
+
- AJAX allows us to send and fetch only important/valuable part of data/information to/from the server not the entire page so it makes your application interactive and faster
104
+
- XML is commonly used as the format for receiving server data, although any format, including plain text, can be used
105
+
- AJAX is a web browser technology independent of web server software/platform
106
+
- Data-driven as opposed to Page-driven methodology
0 commit comments