Library

Video Player is loading.
 
Current Time 0:00
Duration 17:15
Loaded: 0%
 

x1.00


Back

Games & Quizzes

Training Mode - Typing
Fill the gaps to the Lyric - Best method
Training Mode - Picking
Pick the correct word to fill in the gap
Fill In The Blank
Find the missing words in a sentence Requires 5 vocabulary annotations
Vocabulary Match
Match the words to the definitions Requires 10 vocabulary annotations

You may need to watch a part of the video to unlock quizzes

Don't forget to Sign In to save your points

Challenge Accomplished

PERFECT HITS +NaN
HITS +NaN
LONGEST STREAK +NaN
TOTAL +
- //

We couldn't find definitions for the word you were looking for.
Or maybe the current language is not supported

  • 00:00

    XMLHttpRequest is an API available to web browser scripting languages such as JavaScript.
    XMLHttpRequest is an API available to web browser scripting languages such as JavaScript.

  • 00:07

    It is used to send HTTP or HTTPS requests to a web server and load the server response
    It is used to send HTTP or HTTPS requests to a web server and load the server response

  • 00:13

    data back into the script.
    data back into the script.

  • 00:16

    Development versions of all major browsers support URI schemes beyond http: and https:,
    Development versions of all major browsers support URI schemes beyond http: and https:,

  • 00:23

    in particular, blob: URLs are supported.
    in particular, blob: URLs are supported.

  • 00:27

    The name was standardized to XMLHttpRequest for compatibility.
    The name was standardized to XMLHttpRequest for compatibility.

  • 00:31

    It may be misleading, in particular because any data may be received from the server,
    It may be misleading, in particular because any data may be received from the server,

  • 00:37

    not just XML.
    not just XML.

  • 00:40

    Data are also commonly received as JSON, HTML, or as plain text.
    Data are also commonly received as JSON, HTML, or as plain text.

  • 00:47

    Data from the response can be used to alter the current document in the browser window
    Data from the response can be used to alter the current document in the browser window

  • 00:51

    without loading a new web page.
    without loading a new web page.

  • 00:53

    The response data can also be evaluated by client-side scripting.
    The response data can also be evaluated by client-side scripting.

  • 00:58

    For example, if it was formatted as JSON by the web server, it can be converted into a
    For example, if it was formatted as JSON by the web server, it can be converted into a

  • 01:04

    client-side data object for further use.
    client-side data object for further use.

  • 01:08

    XMLHttpRequest has an important role in the Ajax web development technique.
    XMLHttpRequest has an important role in the Ajax web development technique.

  • 01:13

    It is currently used by many websites to implement responsive and dynamic web applications.
    It is currently used by many websites to implement responsive and dynamic web applications.

  • 01:19

    XMLHttpRequest is subject to the browser's same-origin policy: for security reasons,
    XMLHttpRequest is subject to the browser's same-origin policy: for security reasons,

  • 01:26

    requests will only succeed if they are made to the same server that served the original
    requests will only succeed if they are made to the same server that served the original

  • 01:30

    web page.
    web page.

  • 01:32

    History and support The concept behind the XMLHttpRequest object
    History and support The concept behind the XMLHttpRequest object

  • 01:37

    was originally created by the developers of Outlook Web Access for Microsoft Exchange
    was originally created by the developers of Outlook Web Access for Microsoft Exchange

  • 01:42

    Server 2000.
    Server 2000.

  • 01:44

    An interface called IXMLHTTPRequest was developed and implemented into the second version of
    An interface called IXMLHTTPRequest was developed and implemented into the second version of

  • 01:48

    the MSXML library using this concept.
    the MSXML library using this concept.

  • 01:52

    The second version of the MSXML library was shipped with Internet Explorer 5.0 in March
    The second version of the MSXML library was shipped with Internet Explorer 5.0 in March

  • 01:58

    1999, allowing access, via ActiveX, to the IXMLHTTPRequest interface using the XMLHTTP
    1999, allowing access, via ActiveX, to the IXMLHTTPRequest interface using the XMLHTTP

  • 02:05

    wrapper of the MSXML library.
    wrapper of the MSXML library.

  • 02:09

    The Mozilla project developed and implemented an interface called nsIXMLHttpRequest into
    The Mozilla project developed and implemented an interface called nsIXMLHttpRequest into

  • 02:15

    the Gecko layout engine.
    the Gecko layout engine.

  • 02:17

    This interface was modeled to work as closely to Microsoft's IXMLHTTPRequest interface as
    This interface was modeled to work as closely to Microsoft's IXMLHTTPRequest interface as

  • 02:22

    possible.
    possible.

  • 02:23

    Mozilla created a wrapper to use this interface through a JavaScript object which they called
    Mozilla created a wrapper to use this interface through a JavaScript object which they called

  • 02:28

    XMLHttpRequest.
    XMLHttpRequest.

  • 02:31

    The XMLHttpRequest object was accessible as early as Gecko version 0.6 released on December
    The XMLHttpRequest object was accessible as early as Gecko version 0.6 released on December

  • 02:38

    6 of 2000, but it was not completely functional until as late as version 1.0 of Gecko released
    6 of 2000, but it was not completely functional until as late as version 1.0 of Gecko released

  • 02:44

    on June 5, 2002.
    on June 5, 2002.

  • 02:49

    The XMLHttpRequest object became a de facto standard in other major web clients, implemented
    The XMLHttpRequest object became a de facto standard in other major web clients, implemented

  • 02:54

    in Safari 1.2 released in February 2004, Konqueror, Opera 8.0 released in April 2005, and iCab
    in Safari 1.2 released in February 2004, Konqueror, Opera 8.0 released in April 2005, and iCab

  • 03:04

    3.0b352 released in September 2005.
    3.0b352 released in September 2005.

  • 03:08

    The World Wide Web Consortium published a Working Draft specification for the XMLHttpRequest
    The World Wide Web Consortium published a Working Draft specification for the XMLHttpRequest

  • 03:15

    object on April 5, 2006, edited by Anne van Kesteren of Opera Software and Dean Jackson
    object on April 5, 2006, edited by Anne van Kesteren of Opera Software and Dean Jackson

  • 03:21

    of W3C.
    of W3C.

  • 03:23

    Its goal is "to document a minimum set of interoperable features based on existing implementations,
    Its goal is "to document a minimum set of interoperable features based on existing implementations,

  • 03:29

    allowing Web developers to use these features without platform-specific code."
    allowing Web developers to use these features without platform-specific code."

  • 03:34

    The last revision to the XMLHttpRequest object specification was on November 19 of 2009,
    The last revision to the XMLHttpRequest object specification was on November 19 of 2009,

  • 03:41

    being a last call working draft.
    being a last call working draft.

  • 03:45

    Microsoft added the XMLHttpRequest object identifier to its scripting languages in Internet
    Microsoft added the XMLHttpRequest object identifier to its scripting languages in Internet

  • 03:50

    Explorer 7.0 released in October 2006.
    Explorer 7.0 released in October 2006.

  • 03:54

    With the advent of cross-browser JavaScript libraries such as jQuery and the Prototype
    With the advent of cross-browser JavaScript libraries such as jQuery and the Prototype

  • 04:00

    JavaScript Framework, developers can invoke XMLHttpRequest functionality without coding
    JavaScript Framework, developers can invoke XMLHttpRequest functionality without coding

  • 04:06

    directly to the API.
    directly to the API.

  • 04:09

    Prototype provides an asynchronous requester object called Ajax.Request that wraps the
    Prototype provides an asynchronous requester object called Ajax.Request that wraps the

  • 04:13

    browser's underlying implementation and provides access to it.
    browser's underlying implementation and provides access to it.

  • 04:18

    jQuery objects represent or wrap elements from the current client-side DOM.
    jQuery objects represent or wrap elements from the current client-side DOM.

  • 04:23

    They all have a .load() method that takes a URI parameter and makes an XMLHttpRequest
    They all have a .load() method that takes a URI parameter and makes an XMLHttpRequest

  • 04:28

    to that URI, then by default places any returned HTML into the HTML element represented by
    to that URI, then by default places any returned HTML into the HTML element represented by

  • 04:36

    the jQuery object.
    the jQuery object.

  • 04:39

    The W3C has since published another Working Draft specification for the XMLHttpRequest
    The W3C has since published another Working Draft specification for the XMLHttpRequest

  • 04:44

    object, "XMLHttpRequest Level 2", on February 25 of 2008.
    object, "XMLHttpRequest Level 2", on February 25 of 2008.

  • 04:52

    Level 2 consists of extended functionality to the XMLHttpRequest object, including, but
    Level 2 consists of extended functionality to the XMLHttpRequest object, including, but

  • 04:59

    not limited to, progress events, support for cross-site requests, and the handling of byte
    not limited to, progress events, support for cross-site requests, and the handling of byte

  • 05:05

    streams.
    streams.

  • 05:06

    The latest revision of the XMLHttpRequest Level 2 specification is that of 16 August
    The latest revision of the XMLHttpRequest Level 2 specification is that of 16 August

  • 05:12

    2011, which is still a working draft.
    2011, which is still a working draft.

  • 05:15

    As of 5 December 2011, XMLHttpRequest version 2 has been merged into the main XMLHttpRequest
    As of 5 December 2011, XMLHttpRequest version 2 has been merged into the main XMLHttpRequest

  • 05:24

    specification, and there is no longer a version 1 and a version 2.
    specification, and there is no longer a version 1 and a version 2.

  • 05:30

    Support in Internet Explorer versions 5, 5.5, and 6
    Support in Internet Explorer versions 5, 5.5, and 6

  • 05:35

    Internet Explorer versions 5 and 6 did not define the XMLHttpRequest object identifier
    Internet Explorer versions 5 and 6 did not define the XMLHttpRequest object identifier

  • 05:41

    in their scripting languages as the XMLHttpRequest identifier itself was not standard at the
    in their scripting languages as the XMLHttpRequest identifier itself was not standard at the

  • 05:47

    time of their releases.
    time of their releases.

  • 05:50

    Backward compatibility can be achieved through object detection if the XMLHttpRequest identifier
    Backward compatibility can be achieved through object detection if the XMLHttpRequest identifier

  • 05:56

    does not exist.
    does not exist.

  • 05:58

    Web pages that use XMLHttpRequest or XMLHTTP can mitigate the current minor differences
    Web pages that use XMLHttpRequest or XMLHTTP can mitigate the current minor differences

  • 06:04

    in the implementations either by encapsulating the XMLHttpRequest object in a JavaScript
    in the implementations either by encapsulating the XMLHttpRequest object in a JavaScript

  • 06:11

    wrapper, or by using an existing framework that does so.
    wrapper, or by using an existing framework that does so.

  • 06:15

    In either case, the wrapper should detect the abilities of current implementation and
    In either case, the wrapper should detect the abilities of current implementation and

  • 06:19

    work within its requirements.
    work within its requirements.

  • 06:22

    Until 8 April 2014 Microsoft supported Windows XP and so Internet Explorer 6 - a JavaScript
    Until 8 April 2014 Microsoft supported Windows XP and so Internet Explorer 6 - a JavaScript

  • 06:29

    encapsulation example is provided below.
    encapsulation example is provided below.

  • 06:33

    HTTP request The following sections demonstrate how a request
    HTTP request The following sections demonstrate how a request

  • 06:37

    using the XMLHttpRequest object functions within a conforming user agent based on the
    using the XMLHttpRequest object functions within a conforming user agent based on the

  • 06:43

    W3C Working Draft.
    W3C Working Draft.

  • 06:46

    As the W3C standard for the XMLHttpRequest object is still a draft, user agents may not
    As the W3C standard for the XMLHttpRequest object is still a draft, user agents may not

  • 06:53

    abide by all the functionings of the W3C definition and any of the following is subject to change.
    abide by all the functionings of the W3C definition and any of the following is subject to change.

  • 07:00

    Extreme care should be taken into consideration when scripting with the XMLHttpRequest object
    Extreme care should be taken into consideration when scripting with the XMLHttpRequest object

  • 07:06

    across multiple user agents.
    across multiple user agents.

  • 07:08

    This article will try to list the inconsistencies between the major user agents.
    This article will try to list the inconsistencies between the major user agents.

  • 07:13

    The open method The HTTP and HTTPS requests of the XMLHttpRequest
    The open method The HTTP and HTTPS requests of the XMLHttpRequest

  • 07:21

    object must be initialized through the open method.
    object must be initialized through the open method.

  • 07:24

    This method must be invoked prior to the actual sending of a request to validate and resolve
    This method must be invoked prior to the actual sending of a request to validate and resolve

  • 07:28

    the request method, URL, and URI user information to be used for the request.
    the request method, URL, and URI user information to be used for the request.

  • 07:35

    This method does not assure that the URL exists or the user information is correct.
    This method does not assure that the URL exists or the user information is correct.

  • 07:41

    This method can accept up to five parameters, but requires only two, to initialize a request.
    This method can accept up to five parameters, but requires only two, to initialize a request.

  • 07:48

    open( Method, URL, Asynchronous, UserName, Password )
    open( Method, URL, Asynchronous, UserName, Password )

  • 07:53

    The first parameter of the method is a text string indicating the HTTP request method
    The first parameter of the method is a text string indicating the HTTP request method

  • 07:59

    to use.
    to use.

  • 08:00

    The request methods that must be supported by a conforming user agent, defined by the
    The request methods that must be supported by a conforming user agent, defined by the

  • 08:05

    W3C draft for the XMLHttpRequest object, are currently listed as the following.
    W3C draft for the XMLHttpRequest object, are currently listed as the following.

  • 08:12

    GET, Mozilla 1+) POST, Mozilla 1)
    GET, Mozilla 1+) POST, Mozilla 1)

  • 08:16

    HEAD) PUT
    HEAD) PUT

  • 08:17

    DELETE OPTIONS)
    DELETE OPTIONS)

  • 08:19

    However, request methods are not limited to the ones listed above.
    However, request methods are not limited to the ones listed above.

  • 08:24

    The W3C draft states that a browser may support additional request methods at their own discretion.
    The W3C draft states that a browser may support additional request methods at their own discretion.

  • 08:30

    The second parameter of the method is another text string, this one indicating the URL of
    The second parameter of the method is another text string, this one indicating the URL of

  • 08:36

    the HTTP request.
    the HTTP request.

  • 08:38

    The W3C recommends that browsers should raise an error and not allow the request of a URL
    The W3C recommends that browsers should raise an error and not allow the request of a URL

  • 08:43

    with either a different port or ihost URI component from the current document.
    with either a different port or ihost URI component from the current document.

  • 08:49

    The third parameter, a boolean value indicating whether or not the request will be asynchronous,
    The third parameter, a boolean value indicating whether or not the request will be asynchronous,

  • 08:54

    is not a required parameter by the W3C draft.
    is not a required parameter by the W3C draft.

  • 08:58

    The default value of this parameter should be assumed to be true by a W3C conforming
    The default value of this parameter should be assumed to be true by a W3C conforming

  • 09:03

    user agent if it is not provided.
    user agent if it is not provided.

  • 09:05

    An asynchronous request will not wait on a server response before continuing on with
    An asynchronous request will not wait on a server response before continuing on with

  • 09:10

    the execution of the current script.
    the execution of the current script.

  • 09:13

    It will instead invoke the onreadystatechange event listener of the XMLHttpRequest object
    It will instead invoke the onreadystatechange event listener of the XMLHttpRequest object

  • 09:19

    throughout the various stages of the request.
    throughout the various stages of the request.

  • 09:22

    A synchronous request however will block execution of the current script until the request has
    A synchronous request however will block execution of the current script until the request has

  • 09:27

    been completed, thus not invoking the onreadystatechange event listener.
    been completed, thus not invoking the onreadystatechange event listener.

  • 09:33

    The fourth and fifth parameters are the username and password, respectively.
    The fourth and fifth parameters are the username and password, respectively.

  • 09:38

    These parameters, or just the username, may be provided for authentication and authorization
    These parameters, or just the username, may be provided for authentication and authorization

  • 09:43

    if required by the server for this request.
    if required by the server for this request.

  • 09:46

    The setRequestHeader method Upon successful initialization of a request,
    The setRequestHeader method Upon successful initialization of a request,

  • 09:52

    the setRequestHeader method of the XMLHttpRequest object can be invoked to send HTTP headers
    the setRequestHeader method of the XMLHttpRequest object can be invoked to send HTTP headers

  • 09:58

    with the request.
    with the request.

  • 10:00

    setRequestHeader( Name, Value )
    setRequestHeader( Name, Value )

  • 10:03

    The first parameter of this method is the text string name of the header.
    The first parameter of this method is the text string name of the header.

  • 10:08

    The second parameter is the text string value.
    The second parameter is the text string value.

  • 10:11

    This method must be invoked for each header that needs to be sent with the request.
    This method must be invoked for each header that needs to be sent with the request.

  • 10:16

    Any headers attached here will be removed the next time the open method is invoked in
    Any headers attached here will be removed the next time the open method is invoked in

  • 10:20

    a W3C conforming user agent.
    a W3C conforming user agent.

  • 10:23

    The send method To send an HTTP request, the send method of
    The send method To send an HTTP request, the send method of

  • 10:28

    the XMLHttpRequest must be invoked.
    the XMLHttpRequest must be invoked.

  • 10:32

    This method accepts a single parameter containing the content to be sent with the request.
    This method accepts a single parameter containing the content to be sent with the request.

  • 10:37

    send( Data )
    send( Data )

  • 10:40

    This parameter may be omitted if no content needs to be sent.
    This parameter may be omitted if no content needs to be sent.

  • 10:44

    The W3C draft states that this parameter may be any type available to the scripting language
    The W3C draft states that this parameter may be any type available to the scripting language

  • 10:50

    as long as it can be turned into a text string, with the exception of the DOM document object.
    as long as it can be turned into a text string, with the exception of the DOM document object.

  • 10:56

    If a user agent cannot serialise the parameter, then the parameter should be ignored.
    If a user agent cannot serialise the parameter, then the parameter should be ignored.

  • 11:02

    Firefox 3.0.x and previous versions will however throw an exception if send is called without
    Firefox 3.0.x and previous versions will however throw an exception if send is called without

  • 11:07

    an argument.
    an argument.

  • 11:09

    If the parameter is a DOM document object, a user agent should assure the document is
    If the parameter is a DOM document object, a user agent should assure the document is

  • 11:14

    turned into well-formed XML using the encoding indicated by the inputEncoding property of
    turned into well-formed XML using the encoding indicated by the inputEncoding property of

  • 11:19

    the document object.
    the document object.

  • 11:21

    If the Content-Type request header was not added through setRequestHeader yet, it should
    If the Content-Type request header was not added through setRequestHeader yet, it should

  • 11:26

    automatically be added by a conforming user agent as "application/xml;charset=charset,"
    automatically be added by a conforming user agent as "application/xml;charset=charset,"

  • 11:30

    where charset is the encoding used to encode the document.
    where charset is the encoding used to encode the document.

  • 11:37

    If the user agent is configured to use a proxy server, then the XMLHttpRequest object will
    If the user agent is configured to use a proxy server, then the XMLHttpRequest object will

  • 11:43

    modify the request appropriately so as to connect to the proxy instead of the origin
    modify the request appropriately so as to connect to the proxy instead of the origin

  • 11:48

    server, and send Proxy-Authorization headers as configured.
    server, and send Proxy-Authorization headers as configured.

  • 11:52

    The onreadystatechange event listener If the open method of the XMLHttpRequest object
    The onreadystatechange event listener If the open method of the XMLHttpRequest object

  • 11:59

    was invoked with the third parameter set to true for an asynchronous request, the onreadystatechange
    was invoked with the third parameter set to true for an asynchronous request, the onreadystatechange

  • 12:04

    event listener will be automatically invoked for each of the following actions that change
    event listener will be automatically invoked for each of the following actions that change

  • 12:08

    the readyState property of the XMLHttpRequest object.
    the readyState property of the XMLHttpRequest object.

  • 12:14

    State changes work like this: After the open method has been invoked successfully,
    State changes work like this: After the open method has been invoked successfully,

  • 12:19

    the readyState property of the XMLHttpRequest object should be assigned a value of 1.
    the readyState property of the XMLHttpRequest object should be assigned a value of 1.

  • 12:24

    After the send method has been invoked and the HTTP response headers have been received,
    After the send method has been invoked and the HTTP response headers have been received,

  • 12:30

    the readyState property of the XMLHttpRequest object should be assigned a value of 2.
    the readyState property of the XMLHttpRequest object should be assigned a value of 2.

  • 12:36

    Once the HTTP response content begins to load, the readyState property of the XMLHttpRequest
    Once the HTTP response content begins to load, the readyState property of the XMLHttpRequest

  • 12:44

    object should be assigned a value of 3.
    object should be assigned a value of 3.

  • 12:47

    Once the HTTP response content has finished loading, the readyState property of the XMLHttpRequest
    Once the HTTP response content has finished loading, the readyState property of the XMLHttpRequest

  • 12:54

    object should be assigned a value of 4.
    object should be assigned a value of 4.

  • 12:57

    The listener will only respond to state changes which occur after the listener is defined.
    The listener will only respond to state changes which occur after the listener is defined.

  • 13:02

    To detect states 1 and 2, the listener must be defined before the open method is invoked.
    To detect states 1 and 2, the listener must be defined before the open method is invoked.

  • 13:09

    The open method must be invoked before the send method is invoked.
    The open method must be invoked before the send method is invoked.

  • 13:13

    The abort method This method aborts the request if the readyState
    The abort method This method aborts the request if the readyState

  • 13:17

    of the XMLHttpRequest object has not yet become 4.
    of the XMLHttpRequest object has not yet become 4.

  • 13:22

    The abort method ensures that the callback handler does not get invoked during an asynchronous
    The abort method ensures that the callback handler does not get invoked during an asynchronous

  • 13:29

    request.
    request.

  • 13:30

    abort( )
    abort( )

  • 13:31

    Some AJAX libraries use the abort method to cancel potential duplicate or out-of-order
    Some AJAX libraries use the abort method to cancel potential duplicate or out-of-order

  • 13:35

    requests.
    requests.

  • 13:36

    The HTTP response After a successful and completed call to the
    The HTTP response After a successful and completed call to the

  • 13:41

    send method of the XMLHttpRequest, if the server response was valid XML and the Content-Type
    send method of the XMLHttpRequest, if the server response was valid XML and the Content-Type

  • 13:48

    header sent by the server is understood by the user agent as an Internet media type for
    header sent by the server is understood by the user agent as an Internet media type for

  • 13:52

    XML, the responseXML property of the XMLHttpRequest object will contain a DOM document object.
    XML, the responseXML property of the XMLHttpRequest object will contain a DOM document object.

  • 14:01

    Another property, responseText will contain the response of the server in plain text by
    Another property, responseText will contain the response of the server in plain text by

  • 14:06

    a conforming user agent, regardless of whether or not it was understood as XML.
    a conforming user agent, regardless of whether or not it was understood as XML.

  • 14:12

    Cross-domain requests In the early development of the World Wide
    Cross-domain requests In the early development of the World Wide

  • 14:15

    Web, it was found possible to breach users' security by the use of JavaScript to exchange
    Web, it was found possible to breach users' security by the use of JavaScript to exchange

  • 14:20

    information from one web site with that from another less reputable one.
    information from one web site with that from another less reputable one.

  • 14:25

    All modern browsers therefore implement a same origin policy that prevents many such
    All modern browsers therefore implement a same origin policy that prevents many such

  • 14:30

    attacks, such as cross-site scripting.
    attacks, such as cross-site scripting.

  • 14:33

    XMLHttpRequest data is subject to this security policy, but sometimes web developers want
    XMLHttpRequest data is subject to this security policy, but sometimes web developers want

  • 14:39

    to intentionally circumvent its restrictions.
    to intentionally circumvent its restrictions.

  • 14:43

    This is sometimes due to the legitimate use of subdomains as, for example, making an XMLHttpRequest
    This is sometimes due to the legitimate use of subdomains as, for example, making an XMLHttpRequest

  • 14:50

    from a page created by foo.example.com for information from bar.example.com will normally
    from a page created by foo.example.com for information from bar.example.com will normally

  • 14:57

    fail.
    fail.

  • 14:58

    Various alternatives exist to circumvent this security feature, including using JSONP, Cross-Origin
    Various alternatives exist to circumvent this security feature, including using JSONP, Cross-Origin

  • 15:04

    Resource Sharing or alternatives with plugins such as Flash or Silverlight.
    Resource Sharing or alternatives with plugins such as Flash or Silverlight.

  • 15:10

    Cross-origin XMLHttpRequest is specified in W3C's XMLHttpRequest Level 2 specification.
    Cross-origin XMLHttpRequest is specified in W3C's XMLHttpRequest Level 2 specification.

  • 15:17

    Internet Explorer did not implement CORS until version 10.
    Internet Explorer did not implement CORS until version 10.

  • 15:23

    The two previous versions offered similar functionality through the XDomainRequest API.
    The two previous versions offered similar functionality through the XDomainRequest API.

  • 15:29

    It is now supported by all modern browsers.
    It is now supported by all modern browsers.

  • 15:32

    The CORS protocol has several restrictions, with two models of support.
    The CORS protocol has several restrictions, with two models of support.

  • 15:38

    The simple model does not allow setting custom request headers and omits cookies.
    The simple model does not allow setting custom request headers and omits cookies.

  • 15:43

    Further, only the GET and POST request methods are supported, and POST only allows the following
    Further, only the GET and POST request methods are supported, and POST only allows the following

  • 15:49

    MIME types: "text/plain", "application/x-www-urlencoded" and "multipart/form-data".
    MIME types: "text/plain", "application/x-www-urlencoded" and "multipart/form-data".

  • 15:56

    Only "text/plain" was initially supported.
    Only "text/plain" was initially supported.

  • 15:59

    The other model detects when one of the non-simple features are requested and sends a pre-flight
    The other model detects when one of the non-simple features are requested and sends a pre-flight

  • 16:04

    request to the server to negotiate the feature.
    request to the server to negotiate the feature.

  • 16:07

    See also WebSocket
    See also WebSocket

  • 16:09

    Hypertext Transfer Protocol Representational State Transfer
    Hypertext Transfer Protocol Representational State Transfer

  • 16:14

    Ajax References
    Ajax References

  • 16:16

    External links Specifications
    External links Specifications

  • 16:19

    XMLHttpRequest specification from W3C XMLHttpRequest level 2 specification from
    XMLHttpRequest specification from W3C XMLHttpRequest level 2 specification from

  • 16:28

    W3C Cross-Origin Resource Sharing
    W3C Cross-Origin Resource Sharing

  • 16:31

    Progress Events 1.0
    Progress Events 1.0

  • 16:34

    Browsers MSDN Library
    Browsers MSDN Library

  • 16:36

    Specification of the XMLHttpRequest object for Microsoft developers
    Specification of the XMLHttpRequest object for Microsoft developers

  • 16:42

    XDomainRequest
    XDomainRequest

  • 16:43

    Specification of the XMLHttpRequest object for Mozilla developers
    Specification of the XMLHttpRequest object for Mozilla developers

  • 16:49

    Specification of the XMLHttpRequest object for Opera developers
    Specification of the XMLHttpRequest object for Opera developers

  • 16:54

    Other New Tricks in XMLHttpRequest2, online tutorial
    Other New Tricks in XMLHttpRequest2, online tutorial

  • 16:59

    by Eric Bidelman "Attacking AJAX Applications", a presentation
    by Eric Bidelman "Attacking AJAX Applications", a presentation

  • 17:03

    given at the Black Hat security conference.
    given at the Black Hat security conference.

  • 17:07

    Discusses several issues involving XHR and the future of cross-domain Ajax.
    Discusses several issues involving XHR and the future of cross-domain Ajax.

  • 17:12

    [1] Support end of Windows XP
    [1] Support end of Windows XP

All

XMLHttpRequest

1,013 views

Video Language:

  • English

Caption Language:

  • English (en)

Accent:

  • English (US)

Speech Time:

99%
  • 17:14 / 17:15

Speech Rate:

  • 128 wpm - Conversational

Category:

  • Education

Tags :

Intro:

XMLHttpRequest is an API available to web browser scripting languages such as JavaScript.
It is used to send HTTP or HTTPS requests to a web server and load the server response
data back into the script.. Development versions of all major browsers support URI schemes beyond http: and https:,
in particular, blob: URLs are supported.. The name was standardized to XMLHttpRequest for compatibility.
It may be misleading, in particular because any data may be received from the server,
not just XML.. Data are also commonly received as JSON, HTML, or as plain text.
Data from the response can be used to alter the current document in the browser window
without loading a new web page.. The response data can also be evaluated by client-side scripting.
For example, if it was formatted as JSON by the web server, it can be converted into a
client-side data object for further use.. XMLHttpRequest has an important role in the Ajax web development technique.
It is currently used by many websites to implement responsive and dynamic web applications.
XMLHttpRequest is subject to the browser's same-origin policy: for security reasons,
requests will only succeed if they are made to the same server that served the original
web page.. History and support The concept behind the XMLHttpRequest object

Video Vocabulary

/ˈin(t)ərˌfās/

noun verb

Place where things come together to communicate. To make two different elements interact.

/əˈvāləb(ə)l/

adjective

Present and able to be used.

/krēˈāt/

verb

bring into existence.

/ˈlīˌbrerē/

noun

building or room containing books etc..

/ˈlōdiNG/

adjective noun verb

loaded in specified way. application of load or force. To put in items for use (e.g. bullets in a gun).

/ˈwebsīt/

noun other

set of related web pages located under single domain name. Collections of webpages in one location.

noun verb

tool, utensil, or other piece of equipment. put (decision, plan, agreement, etc.) into effect.

/skript/

verb

write script for.

/imˈpôrtnt/

adjective

Having a big effect on (person, the future).

/ˈin(t)ərˌnet/

noun

global computer network providing information and communication facilities.

verb

put (decision, plan, agreement, etc.) into effect.

/səkˈsēd/

verb

To have achieved what you were trying to achieve.

adjective adverb noun verb

likely or prone to be affected by. conditionally upon. person or thing that is being discussed, described, or dealt with. cause or force person or thing to undergo.

/rəˈsēvd/

adjective verb

widely accepted as authoritative or true. To allow someone to become a member (of a club).