merhaba arkadaşlar;
yazdığım php sayfasında ajax ve javascript kullanarak bir value post
ediyorum ve gelen sorgu sonucunu bir div içinde cıktı yapıyorum, aşağıdaki
gibi:
function faz_bul()
{
xmlHttp=ajax();
if (xmlHttp==null)
{
alert ('Tarayiciniz Ajax Desteklemiyor!');
return;
}
var baslik_il = document.getElementById('il').value;
var baslik_locisim = document.getElementById('loc_isim').value;
var urlfaz='faz_bul.php';
var scfaz ='il='+baslik_il+'&loc_isim='+baslik_locisim;
xmlHttp.open('POST', urlfaz, true);
xmlHttp.setRequestHeader('If-Modified-Since', 'Sat, 1 Jan 2000 00:00:00
GMT');
xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded;
charset=UTF-8');
xmlHttp.setRequestHeader('Content-length', scfaz.length);
xmlHttp.setRequestHeader('Connection', 'close');
xmlHttp.onreadystatechange=Guncellefaz;
xmlHttp.send(scfaz);
}
function Guncellefaz()
{
if (xmlHttp.readyState==4)
{
document.getElementById('sonucfaz').innerHTML=xmlHttp.responseText;
}
}
ben burada gelen sorguyu bir div içinde değilde yeni bir sayfada açmak
istiyorum, fikirlerinizi almak isterim, şimdiden teşekkürler.
--
antiCobol..
_______________________________________________
Linux-programlama mailing list
[email protected]
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php