Flashcards
W7: Template engines, ajax - API CLIENT
Cards in this deck (11)
- 1What are template engines?JavaScript templating engines enable you to add dynamic logic to static HTML pages. For instance, you can declare a variable that the engine replaces with an actual value at runtime. Similarly, you can use conditionals, loops, filters, mixins, and other constructs, depending on the templating engine you choose.
- 2What does AJAX stand for?asynchrounus javascript and XML
- 3What is AJAX?It is a web development technique for creating interactive web applications. AJAX is a mechanism for the client to
request data from the server without loading/refreshing the entire page - 4What is XMLHTTPRequest?Anobject whose methods transfer data between a web browser and a web server
- 5Create an XMLHttpRequest Objectvar request= new XMLHttpRequest();
- 6open a GET request on an XMLHttpRequest Object called "request" with url: url send the requestrequest.open('GET', url);
request.send(); - 7what function is called when a request has been successfull?XMLHttpRequest.onload = callback;
//callback is called on success - 8How can we access the data from a XMLHttpRequest ?request.onload = function () {
var res = request.response
} - 9how do we set the response type to text?request.responseType = 'text';
- 10what is HTTP?HTTP stands for Hyper Text Transfer Protocol
Communication between client computers and web servers is done by sending HTTP Requests and receiving HTTP Responses - 11—
Information
- Description
- Webdev Flashcards on W7: Template engines, ajax - API CLIENT, created by Emma Tysk on 21/06/2019.
- Created by
- Emma Tysk · Jun 2019
- Updated
- Jun 25, 2019
- Views
- 1
- Rating