|
Empire Burlesque
|
bet | 3/4 | Sana | 21.05.2024 | Hajmi | 3,64 Mb. | | #248070 |
Bog'liq Norboboyev Server javobi
-
Property
|
Description
|
onreadystatechange
|
Defines a function to be called when the readyState property changes
|
readyState
|
Holds the status of the XMLHttpRequest.
0: request not initialized
1: server connection established
2: request received
3: processing request
4: request finished and response is ready
|
status
|
200: "OK"
403: "Forbidden" 404: "Page not found"
|
statusText
|
Returns the status-text (e.g. "OK" or "Not Found")
|
Server javobi:
function loadDoc() {
var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
} }; xhttp.open("GET", "ajax_info.txt", true); xhttp.send();
}
Ishni bajarish tartibi:
qadam. Ish NetBeans IDE integrallashgan ishlab chiqarish muhitini yuklash bilan boshlanadi. Quyidagi rasmda NetBeans IDE muhitining asosiy darchasi yuklangan.
3-rasm. NetBeans IDE muhiti asosiy darchasi
qadam. “Файл” menyusidan “Создать проект” bo‘limi tanlanganda quyidagi rasmdagi darcha paydo bo‘ladi. Ushbu darchadan “Категории” bo‘limidan JavaWeb tanlanib “Далее” tugmasi bosiladi.
4-rasm. NetBeans IDE “Создать проект” darchasi
qadam. “Новый Веб-приложение” dasturiga o‘tiladi. Ushbu darchaning
“Имя проекта” maydoniga proyekt nomi sifatida “Talabaning_Ismi_Web” kiritilib “Далее” tugmasi bosiladi.
6.5-rasm. NetBeans IDE muhiti “Новый Веб-приложение” darchasi
6.6-rasm. NetBeans IDE muhiti “Новый Веб-приложение”
|
| |