• Implementation of Ajax by native JS and jquery


    Implementation of Ajax by native JS and jquery I. definition This is how AJAX is interpreted in the W3C: Ajax = asynchronous JavaScript and XML. AJAX is not a new programming language, but a new way to use existing standards.AJAX is the art of exchanging data with servers and updating parts of a web page […]

  • The basic method of three-level linkage in AJAX


    The example of this article shares the specific code of Ajax to realize three-level linkage for your reference. The specific content is as follows 1. First, arrange a div on a page to facilitate future reference <body> < div > // div ID is “Sanji” </div> 2. Sanji JS processing page $(document).ready(function(){ //Put three pull-down […]

  • Getting started with Ajax and post


    In the previous essay, in a nostalgic manner, I summarized a method of building XHR objects compatible with different browsers: After the XHR object is established, what the client needs to do is to pass the data to the server in some way to get the corresponding response. Here, in the second quarter of Ajax […]

  • Ajax I have to say


    HTTP request status The value of the readyState property represents the state of the HTTP request. When an XMLHttpRequest is created for the first time, the value of this property starts from 0 until a complete HTTP response is received, and this value will increase to 4. The meaning of each value is: UninitializedStatus value […]

  • An example of Ajax response JSON string and JSON array


    Recently, I have been too busy at work. In the evening, I take time to sort out the scene of returning JSON string and JSON array in the background, as well as the example of processing in the foreground. Look directly at the code. Background response of JSON string package com.ajax; import java.io.IOException; import java.io.PrintWriter; […]

  • JQ instance part — case of Ajax requesting JSON data


    Today, there is such a demand. Click on six continents and some corresponding request information will appear, which will be displayed below. After the request, the second click will not require a request.As shown in the figure: click North America to display some requested data HTML code structure: <div class=”conSixmap”> <div class=”name conmap01″ data-name=”beimeizhou”> < […]

  • Traditional AJAX is dead, fetch is forever


    Forgive me for being a title party. Ajax will not die. Traditional Ajax refers to XMLHttpRequest (XHR),FutureIt has now been replaced by fetch. Recently, the data products of Alibaba’s 10 million level PV are all produced by jQuery$.ajaxMigrate toFetch, it has been running very stable since it was launched for more than one month. The […]

  • Analysis and solution of Ajax synchronization and asynchrony


    When sending and receiving data to the background through Ajax, there are often synchronous and asynchronous problems. Because AJAX is loaded asynchronously by default, but sometimes it needs to be synchronized or synchronized, there are two solutions. Scheme 1: put some methods into callback function for execution, that is, wait until the success is returned […]

  • Search function on mobile terminal


    The following search related functions need to be implemented on the mobile end Click search button to search Search button How to pop it up firstSearch button。 In HTML5, input already supports search type, and ISO / Android has its own implementation fortunately. Just write according to the standard of mobile terminal, then I will […]

  • Case analysis of post request submitted by Ajax


    This article describes an example of Ajax submitting a post request. To share with you for your reference, as follows: Preface:The blogger had an article about getting started with Ajax, mainly using Ajax to make simple get requests. Today, I’d like to share with you a piece about using Ajax to submit post requests, what […]

  • Getting started with Ajax (1) from 0 to a successful get request


    Getting started with Ajax (1) from 0 to a successful get request Move from personal blogTraditional forms refresh the whole page after submission What is a server Analysis of web browsing process A completeHTTP requestProcess, usually has the following 7 steps Establish a TCP connection Web browser sends request command to web server Web browser […]

  • Analysis of Ajax return value types and usage examples


    This article describes Ajax return value types and usage. To share with you for your reference, as follows: Ajax return value types mainly include XML type and text type, and the text type can be divided into HTML, JSON type and so on. 1. XML type of return value If the content type content in […]