View Single Post
Eski 20/08/2007, 00:49   #1 (permalink)
DotNetKid
Eski toprak
 
Üyelik Tarihi: 05/2003
Yer: TurKey
Mesaj: 1,623
Varsayılan benim bilg.da farklı diğerlerinde farklı çalışıyor, ajax..

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(urlparameters) { 
      
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'urltrue); 
      
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=" encodeURIdocument.getElementById("Kadi").value ) ; 
      
poststr poststr "&" "Sfr=" encodeURIdocument.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
__________________
Güçlü bir TÜRKİYE için önce güçlü bir TÜRKÇE!
DotNetKid hatta değil   Alıntı Yaparak Yanıtla