Get the App
SLTechnology News&Howtos  ›  Development  › 

How to write Ajax and Asp

Shulou Source: shulou.com Published: 2022-06-03 08:38:28 11月15日 Update

This article focuses on "how to write Ajax and Asp", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to write Ajax and Asp.

Ajax.html

The code is as follows:

Function f () {

Var req = new ActiveXObject ("Microsoft.XMLHTTP")

Req.open ("GET", "t.asproomt1 =" + t1.value, true)

Req.onreadystatechange = function () {

If (req.readyState = = 4) {

If (req.status = = 200) {

Msg.innerText = req.responseXML.documentElement.tagName

}

}

}

Req.send (null)

}

1: display "OK"; other characters: display "Error"

Tags: Code content learning practical deeper interest character practicality practical simple operation method more friends website channel query detection Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft Shulou Technology Linux Redmi