PHP Kodu:
<html>
<head>
<link rel="stylesheet" href="Dosyalar/Kodlar/Ortak/stil.css">
<meta http-equiv="Content-Language" content="tr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>SAYFA</title>
</head>
<body topmargin="10" leftmargin="0" bgcolor="#CCCCCC">
<center>
<script type="text/javascript" language="javascript">
var http_request = false;
function makePOSTRequest(url, parameters) {
http_request = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
// set type accordingly to anticipated content type
//http_request.overrideMimeType('text/xml');
http_request.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.onreadystatechange = alertContents;
http_request.open('POST', url, true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
http_request.send(parameters);
}
function alertContents() {
document.getElementById('myspan').innerHTML = '<img src=Dosyalar/Resimler/Ortak/yukle.gif align=absmiddle> Lütfen bekleyiniz...';
if (http_request.readyState == 4) {
if
(http_request.status == 200) {
//alert(http_request.responseText);
result = http_request.responseText;
document.getElementById('myspan').innerHTML = http_request.responseText;
document.getElementById('Kadi').focus();
} else {
alert('There was a problem with the request.');
}
}
}
function get(obj) {
var poststr = "Kadi=" + encodeURI( document.getElementById("Kadi").value ) ;
poststr = poststr + "&" + "Sfr=" + encodeURI( document.getElementById("Sfr").value ) ;
makePOSTRequest('Denetle.asp', poststr);
}
</script>
<table cellpadding="0" cellspacing="0" height="500" border="0" width="800">
<tr>
<td align="right" style="width: 399px; padding-right: 25px;"></td>
<td bgcolor="Red" style="width: 1px;"></td>
<td style="width: 400px; padding-top: 25px;">
<form action="javascript:get(document.getElementById('GirisBelge'));" method="post" name="GirisBelge" id="GirisBelge">
<input onfocus="this.style.backgroundColor='#DDFFDD';" onblur="this.style.backgroundColor='';" style="margin-left: 25px;" type="text" name="Kadi" id="Kadi" size="10" maxlength="16"> <input onfocus="this.style.backgroundColor='#DDFFDD';" onblur="this.style.backgroundColor='';" type="password" maxlength="16" name="Sfr" id="Sfr" size="8"> <input onclick="javascript:get(this.parentNode);" align="absmiddle" type="image" name="g" src="Dosyalar/Resimler/Ziyaretci/Ortak/giris001.gif"> <span id="myspan"></span>
</form>
</td>
</tr>
</table>
</center>
</body>
</html>
arkadaşlar.. bu kodlar sunucuda yüklü.. benim bilgi.dan ( ve bi kaç bilgisayardan daha.. ) internetten bu sayfaya eriştiğim zaman ajax sorunsuz çalışıyor. fakat diğer makinelerde giriş e bastıgımda
Js hatası veriyor. hata: izin verilmiyor.. hata aldığım makineden IExplorer ayarlarını filan varsayılan düzeye getiriyorum ama bi işe yaramıyor.. sizce nedir bu