[Linux-programlama] Javascript fonksiyon cagirma sorunu

---------

[Linux-programlama] Javascript fonksiyon cagirma sorunu

From: Başer GÜVENÇ <baserguvenc_at_yahoo.com>
Date: Fri, 5 Sep 2008 00:39:49 -0700 (PDT)
Message-ID: <616538.22995.qm@web62408.mail.re1.yahoo.com>

Merhabalar,asagida yazdigim kodda aygit_add fonksiyonunu calistirdiktan sonra aygit_ara fonksiyonunu calistiriyorum ama aygit ara fonksiyonu calismiyor,  en alt satirdaki aygit_ara(); fonksiyonundan once alert koyunca calisiyor , ilginc bir durum, yardim ederseniz sevinirim.

function aygit_ara() {
    document.getElementById('bekle').style.display = '';
    var params = "id=0";
    var url    =    "aygit_ekle_src.php";
   
    http.open("POST", url, true);
   
    //Send the proper header infomation along with the request
    http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    http.setRequestHeader("Content-length", params.length);
    http.setRequestHeader("Connection", "close");

    http.onreadystatechange = handler;
    http.send(params);
       
}

function aygit_add() {
    document.getElementById('bekle').style.display = '';
    if(document.getElementById("aygit_kodu").value=="" || document.getElementById("aygit_adi").value=="" || document.getElementById("aygit_ozellikleri").value==""){
        alert("Lütfen Tüm Alanlar¹ Doldurunuz");
    }else{
        var params = "ad="+document.getElementById("aygit_kodu").value+"&kod="+document.getElementById("aygit_adi").value+"&aciklama="+document.getElementById("aygit_ozellikleri").value;       
        var url    =    "aygit_ekle_db.php";
       
        http.open("POST", url, true);
       
        //Send the proper header infomation along with the request
        http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        http.setRequestHeader("Content-length", params.length);
        http.setRequestHeader("Connection", "close");
   
        http.onreadystatechange = handler;
        http.send(params);       
       
        aygit_ara();
        }
}

Baser GUVENC

 Computer Engineer.

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Fri 05 Sep 2008 - 10:02:17 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.