1
00:00:00,600 --> 00:00:02,060
Hello and welcome.

2
00:00:02,250 --> 00:00:16,260
In this lecture we will be creating a mixed SML hate TTP requests are the SML H T T P request objet

3
00:00:16,860 --> 00:00:23,790
is the tool that does the heavy lifting in Ajax.

4
00:00:24,180 --> 00:00:28,400
All modern web browsers support the XM mail.

5
00:00:28,440 --> 00:00:37,620
He's TTP request objet and be sure to Hall have this built in to the web browser.

6
00:00:37,830 --> 00:00:49,160
So the ex email hated ATP request objet is used to exchange data with a web server behind the scenes.

7
00:00:49,500 --> 00:00:55,890
So all the stuff that it just does being the scene he does it using the XM mail.

8
00:00:56,010 --> 00:00:58,880
His TTP request object.

9
00:00:59,070 --> 00:01:09,240
So an ex email TTP request object has to be created first before that request he sent to the Web browser

10
00:01:09,660 --> 00:01:18,000
the web browser then creates a response for that request and sent it back to the web browser and then

11
00:01:18,000 --> 00:01:25,980
the web browser then performs an update using the data that has been sent back by the server.

12
00:01:26,220 --> 00:01:36,350
So XM mail hate TTP request object is used to exchange data with a web server behind the scene.

13
00:01:36,360 --> 00:01:45,680
This is what makes the web page of date without reloading the entire web page.

14
00:01:45,900 --> 00:01:55,800
So with this dp request objet it is possible to update parts of a web page without reloading entire

15
00:01:55,800 --> 00:01:57,070
web page.

16
00:01:57,120 --> 00:02:03,080
So let's create an ex email his TTP request.

17
00:02:03,090 --> 00:02:13,450
This is kind of like this syntax you would use to create one before a request can be sent to a web server.

18
00:02:13,800 --> 00:02:18,380
You must create an SML hasty Tippie request.

19
00:02:18,570 --> 00:02:21,140
So this is how you would create it.

20
00:02:21,150 --> 00:02:23,220
You begin with the word far.

21
00:02:23,280 --> 00:02:27,040
This is a variable and then you give the variable name.

22
00:02:27,150 --> 00:02:28,660
I've just given a Jane.

23
00:02:28,740 --> 00:02:31,530
Here you can give me any name you like.

24
00:02:31,720 --> 00:02:33,070
Doesn't really matter.

25
00:02:33,210 --> 00:02:35,150
And then this will be the value.

26
00:02:35,370 --> 00:02:37,350
This equals to here means value.

27
00:02:37,590 --> 00:02:41,430
So the value of the variable would be new.

28
00:02:41,430 --> 00:02:47,250
This news important which refers to a new exim Mail request.

29
00:02:47,250 --> 00:02:51,360
So this is the request that will be sent to the web server.

30
00:02:51,720 --> 00:02:57,870
So regardless of how many requests you make you have to create a new one each time.

31
00:02:57,990 --> 00:03:09,300
So if I want to term different parts data from a web page I will be creating various SML TTP request

32
00:03:09,660 --> 00:03:12,530
for each of the request I want.

33
00:03:12,690 --> 00:03:24,710
Okay so this is a syntax or how you would create an Excel mail he's TTP request object we roadsign here.

34
00:03:24,720 --> 00:03:28,240
This is standard for function in javascript.

35
00:03:28,290 --> 00:03:36,150
This is the variable and it was to hear signals the value of the variable in this led chart.

36
00:03:36,180 --> 00:03:48,440
We learned how to create a Excel TTP request objet using the syntax variable and they give the variable

37
00:03:48,470 --> 00:03:53,160
name and then give you the value the value will be new.

38
00:03:53,230 --> 00:03:54,020
X a male.

39
00:03:54,030 --> 00:04:00,600
His TTP request XM allocated to appear a request object is very important.

40
00:04:00,600 --> 00:04:05,280
It is used to exchange data with a web server behind the scene.

41
00:04:05,550 --> 00:04:14,370
So all the update that happens on the web server behind the scene without the website reloading is done

42
00:04:14,400 --> 00:04:16,110
using the SML.

43
00:04:16,150 --> 00:04:23,190
He t t p request subject without a smell his TTP of course object created.

44
00:04:23,280 --> 00:04:27,600
You can not send the request to the web server.

45
00:04:29,400 --> 00:04:38,880
So all request you've been making to the web so far will require you right in this syntax here.

46
00:04:38,880 --> 00:04:45,340
Variable then give a variable name and then it goes to New TTP requests.

47
00:04:45,420 --> 00:04:47,180
Thank you so much for your time.

48
00:04:47,220 --> 00:04:50,930
I hope the information has been useful.

49
00:04:51,010 --> 00:04:51,920
XO mail.

50
00:04:52,070 --> 00:04:59,920
To be request object also referred to as x h r the X is SML.

51
00:05:00,170 --> 00:05:04,140
Hate is hate is happy and in heartfully requests for short.

52
00:05:04,400 --> 00:05:14,280
So if you see x h ha they also mean X airmailed he's TTP request subject is just a shorter way to write

53
00:05:14,280 --> 00:05:15,050
it.

54
00:05:15,050 --> 00:05:15,980
Take care.

55
00:05:15,980 --> 00:05:17,460
Bye for now.
