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