Tag:ajax

  • Implementation of Ajax by native JS and jquery

    Time:2020-1-17

    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

    Time:2020-1-17

    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

    Time:2020-1-16

    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

    Time:2020-1-15

    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

    Time:2020-1-15

    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

    Time:2020-1-14

    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

    Time:2020-1-13

    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

    Time:2020-1-13

    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

    Time:2020-1-11

    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

    Time:2020-1-11

    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

    Time:2020-1-10

    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

    Time:2020-1-10

    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 […]