Get the App
SLTechnology News&Howtos  ›  Development  › 

An example of the definition of ajax and its use

Shulou Source: shulou.com Published: 2022-06-03 16:29:16 11月14日 Update

This article introduces the relevant knowledge of "examples and use of the definition of ajax". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

AJAX, whose full name is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), is a web development technology for creating interactive web applications. It uses:

* use XHTML+CSS to represent information

* use JavaScript to operate DOM (Document Object Model) for dynamic display and interaction

* use XML and XSLT for data exchange and related operations

* use XMLHttpRequest objects to exchange data asynchronously with Web servers

* use JavaScript to tie everything together.

Example of an ajax definition:

Var xmlhttp;if (window.XMLHttpRequest) {/ / code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest ();} else {/ / code for IE6, IE5 xmlhttp=new ActiveXObject ("Microsoft.XMLHTTP");}

Ajax uses:

Xhr.open ('get','default.aspx,false'); / / prepare synchronization request xhr.send (); if (xhr.status > = 200 & & xhr.status

Tags: Examples content data more knowledge web pages practicality learning and then things interaction information full name dynamic dilemma reality objects development technology situation technology Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Technology macOS OPPO Reno Xiaomi