[Linux-programlama] Re: Javascript fonksiyon cagirma sorunu

---------

[Linux-programlama] Re: Javascript fonksiyon cagirma sorunu

From: Mehmet Gürevin <mehmetgurevin_at_gmail.com>
Date: Fri, 5 Sep 2008 12:46:29 +0300
Message-ID: <1635d1bf0809050246k199a8b80k9d2fd49d4f91a74c@mail.gmail.com>

kodun tamamı olmadığı için net birşey söyleyemeyeceğim ancak
muhtemelen ajax'ın senkronize/asenkronize kullanımı ile ilgili bir
sorun yaşıyorsunuz.

kodun tamamını gönderirseniz belki daha fazla yardımcı olabiliriz.

2008/9/5 Baþer GÜVENÇ <baserguvenc_at_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
>
>
_______________________________________________
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 - 12:08:57 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.