-
Notifications
You must be signed in to change notification settings - Fork 256
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi looks good, thank you so much! I just added some notes mostly language related. But nice short and clear explanation!
Week5/REVIEW.MD
Outdated
## XMLHTtpRequest | ||
**XMLHttpRequest** is an objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. XMLHttpRequest is used heavily in Ajax programming. - [MDN](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) | ||
## XMLHttpRequest | ||
**XMLHttpRequest** is an objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. XMLHttpRequest is used heavily in Ajax programming - [MDN](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object (without the s 😄 )
Week5/REVIEW.MD
Outdated
|
||
So what is Ajax? | ||
**Ajax** is a method of exchanging data with a server, and updating parts of a web page without reloading the entire page. | ||
|
||
Let's diving a bit deeply into the code: | ||
Let's diving into the code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dive 😄
Week5/REVIEW.MD
Outdated
* 1 : request has been set up. | ||
* 2 : request has been sent. | ||
* 3 : request is in process. | ||
* 4 : request is complete. | ||
|
||
In the code below we are checking if the request is complete or not, and we check the status == 200 just to make sure that we do not get 404 error. - Take a look about [HTTP Status Code](https://httpstatuses.com). | ||
In the code below we are checking if the request is complete or not, and we check the status == 200 just to make sure that we do not get 404 error - Take a look about [HTTP Status Code](https://httpstatuses.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that we do not get a 404 error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read more about it here: (instead of take a look about)
Week5/REVIEW.MD
Outdated
|
||
First, we need to make an instance from 'XMLHttpRequest' class. | ||
First, we need to make an instance from 'XMLHttpRequest' object. | ||
```javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can also just type "js", less typing 😄
Hi @mkruijt , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
Hi @mkruijt ,
I have added an explanation about XHR in the review of week 5.