Tag:xmlhttprequest

  • XMLHttpRequest (Ajax) cannot modify cookies in the header

    Time:2020-1-29

    When debugging the interface, I found that how jQuery Ajax modifies the cookies of headers does not work, so I got the answer There are also some items that cannot be modified. The following is an array of items that cannot be modified var forbiddenRequestHeaders = [ “accept-charset”, “accept-encoding”, “access-control-request-headers”, “access-control-request-method”, “connection”, “content-length”, “content-transfer-encoding”, “cookie”, […]

  • XMLHttpRequest FormData

    Time:2020-1-22

    What is FormData MDN XMLHttpRequest Level 2 adds support for the new FormData interface. FormData objects provide a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest send() method. XMLHttpRequestThe second edition added a new interfaceFormDataSupport.FormDataYou can easily pair form […]

  • Do you really use XMLHttpRequest?

    Time:2020-1-1

    When seeing the title, some students may think: “I have usedxhrSuccessfully sent manyAjaxI’ve asked. I’m quite proficient in its basic operation. ” I used to think like you, until recently I usedxhrWhen I stepped on many holes, I suddenly found that I didn’t know enough about itxhrI know only the most basic use.So I decided […]

  • Choose an Ajax / HTTP Library

    Time:2019-12-29

    Using JavaScript for development can never get around the network. At present, the main network use scenarios are as follows: AJAX (browser) HTTP client (server) Of course, if you are developing an isomorphic / universal application, you may need something that can handle both the browser and the server side. Anyway, use it directlyXMLHttpRequestIt’s very […]

  • Front end training – intermediate stage (10) – homologous strategy (August 15, 2019)

    Time:2019-12-3

    The most basic part of the front end isHTML+CSS+Javascript。 Mastering these three technologies, even if you are a beginner, is just a beginner. Now the definition of front-end development is far more than these. Front end classroom(HTML/CSS/JS)In line with the central idea of improving the technical level and strengthening the basic knowledge, we have started […]

  • XMLHttpRequest properties, methods, events & more.

    Time:2019-11-28

    XMLHttpRequest property, method and event collation. Method of XHR object open(method:string, url:string, async?:boolean=true, username?:string, password: string) Used to createHTTPRequest, but the request was not sent. method, request type, such asGET 、POSTWait, case insensitive. url, URLaddress async, asynchronous or not, defaulttrue。In case of synchronization request xhr.timeoutValue must be 0. xhr.withCredentialsValue must be false. xhr.responseTypeThe value must […]

  • Front end training – intermediate stage (21) – xhr2, formdata (2019-10-17)

    Time:2019-11-16

    The most basic part of the front end isHTML+CSS+Javascript。 Mastering these three technologies, even if you are a beginner, is just a beginner. Now the definition of front-end development is far more than these. Front end classroom(HTML/CSS/JS)In line with the central idea of improving the technical level and strengthening the basic knowledge, we have started […]

  • Heavyweight! Take you from zero to implement an Axios network request framework

    Time:2019-11-6

    We know that Axios is a very excellent front-end framework for network requests, which is characterized by convenient requests, multiple functions (such as interceptors), strong scalability and so on. As a front-end developer, understanding and being able to use Axios is actually the foundation. It’s important to have a deep understanding of its implementation principle. […]

  • Details: parsing XML documents and XML strings

    Time:2019-9-9

    The total code is as follows: var XMLHttp = null; If (window. XMLHttpRequest) {// Modern Browser XMLHttp = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttp = new ActiveXObject(“Microsoft.XMLHTTP”); //IE5/IE6 } if (XMLHttp !== null) { XMLHttp.onreadystatechange = function() { if (XMLHttp.readyState === 4) { if (XMLHttp.status === 200 || XMLHttp.status === 304) { // […]

  • A General Review of Ajax Knowledge System

    Time:2019-9-4

    Guide reading Ajax is called Asynchronous JavaScript and XML, which is called asynchronous JS and XML. It was first used in IE5 and then popularized by Mozilla, Apple and Google. Typical representative applications are Outlook Web Access and GMail. There is almost no Ajax in modern web pages. Front-end separation is also based on Ajax […]

  • XMLHttpRequest for Asynchronous Requests

    Time:2019-7-19

    XMLHttpRequest brief introduction XMLHttpRequestObjects can achieve page refreshless to achieve data interaction with the server. First designed by Microsoft, then used by Google, Mozilla, etc. Now it has become the standard of asynchronous request. Almost all browsers support this object. The asynchronous request protocols it supports includeHTTP,file,ftpFor the sake of introduction, we will refer to […]

  • Ajax data interaction

    Time:2019-5-3

    Memory is getting worse and worse. Suddenly, the advantage of segmentfoult is that what has been summarized is always available. Today’s content is ajax data interaction, because the interface docking is troublesome in recent projects, and the framework written by others is very poor. This article starts with the native XMLHttpRequest object and describes the […]