-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax.html
More file actions
35 lines (34 loc) · 1.17 KB
/
ajax.html
File metadata and controls
35 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>AJAX</title>
</head>
<body>
<center><h1>What is AJAX</h1></center>
<ol>
<li>Asynchrouous JavaScript & XML</li>
<li>Set of web technologies</li>
<li>send & recive data asynchronsly</li>
<li>Does not interfere with the current page</li>
<li>JSON has replaced XML for the most part</li>
<li>Make asyc request in the background</li>
<li>No page reload/refresh</li>
<li>Fetch data</li>
<li>Very interactive</li>
</ol>
<center><h2>XmlHttpRequest(XHR) object</h2></center>
<ol>
<li>API in the form of an object</li>
<li>Provided by the browsers JS environment</li>
<li>Methods transfer data between client/ server</li>
<li>can be used with other protocols than HTTP</li>
<li>Can work with data other than XML (JSON, plain text)</li>
<img src="Screen%20Shot%202018-11-06%20at%209.18.56%20PM%202.png" height="400" width="500">
</ol>
<h1> Click here to see the example:</h1>
<form action="index.html">
<input type="submit" name="Click me!" value="Click me!">
</form>
</body>
</html>