• Ishni bajarish tartibi
  • Empire Burlesque




    Download 3,64 Mb.
    bet3/4
    Sana21.05.2024
    Hajmi3,64 Mb.
    #248070
    1   2   3   4
    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:

    1. qadam. Ish NetBeans IDE integrallashgan ishlab chiqarish muhitini yuklash bilan boshlanadi. Quyidagi rasmda NetBeans IDE muhitining asosiy darchasi yuklangan.



      1. 3-rasm. NetBeans IDE muhiti asosiy darchasi


    1. qadam. “Файл” menyusidan “Создать проект” bo‘limi tanlanganda quyidagi rasmdagi darcha paydo bo‘ladi. Ushbu darchadan “Категории” bo‘limidan JavaWeb tanlanib “Далее” tugmasi bosiladi.



      1. 4-rasm. NetBeans IDE “Создать проект” darchasi

    1. 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 “Новый Веб-приложение”

    Download 3,64 Mb.
    1   2   3   4




    Download 3,64 Mb.