leecooper
11-06-2008, 12:44 PM
why it doesn't work In IE?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta http-equiv="Content-Language" content="he">
<script type="text/javascript">
function Object()
{
var check=false;
if (window.XMLHttpRequest)
{
try
{
check = new XMLHttpRequest();
}
catch(e)
{
check=false;
}
}
else if(window.ActiveXObject)
{
try
{
check=new ActiveXObject("Msxml2.HTMLHTTP");
}
catch(e)
{
try
{
check=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
check=false;
}
}
}
return check;
}
var http = Object();
function URLencode(strText)
{
strText=strText;
strText=strText.replace(/א/g,"%E0");
strText=strText.replace(/ב/g,"%E1");
strText=strText.replace(/ג/g,"%E2");
strText=strText.replace(/ד/g,"%E3");
strText=strText.replace(/ה/g,"%E4");
strText=strText.replace(/ו/g,"%E5");
strText=strText.replace(/ז/g,"%E6");
strText=strText.replace(/ח/g,"%E7");
strText=strText.replace(/ט/g,"%E8");
strText=strText.replace(/י/g,"%E9");
strText=strText.replace(/כ/g,"%EB");
strText=strText.replace(/ל/g,"%EC");
strText=strText.replace(/מ/g,"%EE");
strText=strText.replace(/נ/g,"%F0");
strText=strText.replace(/ס/g,"%F1");
strText=strText.replace(/ע/g,"%F2");
strText=strText.replace(/פ/g,"%F4");
strText=strText.replace(/צ/g,"%F6");
strText=strText.replace(/ק/g,"%F7");
strText=strText.replace(/ר/g,"%F8");
strText=strText.replace(/ש/g,"%F9");
strText=strText.replace(/ת/g,"%FA");
strText=strText.replace(/ם/g,"%ED");
strText=strText.replace(/ן/g,"%EF");
strText=strText.replace(/ף/g,"%F3");
strText=strText.replace(/ץ/g,"%F3");
return strText;
}
function ClearTextboxes()
{
document.getElementById('message').value = '';
}
function send(number)
{
http.open("get","ajax.php")
http.onreadystatechange = response;
http.send(null);
setTimeout("send()",2000);
}
function sendi(message)
{
http.open("get","ajax.php?insert="+URLencode(message))
http.onreadystatechange = response;
http.send(null);
}
function response()
{
if(http.readyState == 4)
{
document.getElementById("text").innerHTML=http.responseText;
}
}
</script>
</head>
<body onload="send()">
<center>
<table id="Table_01" width="801" height="241" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<img src="images/chat/html_01.gif" width="114" height="30" alt=""></td>
<td colspan="3" background="images/chat/html_02.gif" width="535" height="30">
</td>
<td colspan="3" background="images/chat/html_03.gif" width="147" height="30">
</td>
<td colspan="2" background="images/chat/html_04.gif" width="4" height="30">
</td>
<td width="1" height="30">
</td>
</tr>
<tr>
<td colspan="8" background="images/chat/html_05.gif" width="795" height="1">
</td>
<td colspan="2" rowspan="4" background="images/chat/html_06.gif" width="3" height="195">
</td>
<td rowspan="5" background="images/chat/html_07.gif" width="2" height="201">
</td>
<td background="images/chat/spacer.gif" width="1" height="1">
</td>
</tr>
<tr>
<td rowspan="2" background="images/chat/html_08.gif" width="8" height="193">
</td>
<td background="images/chat/html_09.gif" width="81" height="170">
</td>
<td colspan="2" background="images/chat/html_10.gif" width="476" height="170">
<div style="border: 0px none; overflow: auto; text-align:center; width:476px; height:170;" id="text"></div>
</td>
<td rowspan="4" background="images/chat/html_11.gif" width="1" height="200">
</td>
<td colspan="2" background="images/chat/html_12.gif" width="228" height="170">
<form id="form1" align="center">
<textarea style="border-width:0px; BACKGROUND-COLOR: #e0e1e5; WIDTH: 212; HEIGHT: 124; COLOR: #000000; OVERFLOW: auto; " rows="1" cols="1" dir="rtl" id="message" rows="8" cols="25"></textarea> <br>
<center>
<input type="button" onclick="sendi(message.value); ClearTextboxes();" value="שלח"/>
</center>
</form>
</td>
<td rowspan="4" background="images/chat/html_13.gif" width="1" height="200">
</td>
<td width="1" height="170">
</td>
</tr>
<tr>
<td rowspan="4" background="images/chat/html_14.gif" width="81" height="39">
</td>
<td colspan="2" rowspan="3" background="images/chat/html_15.gif" width="476" height="30">
</td>
<td colspan="2" rowspan="3" background="images/chat/html_16.gif" width="228" height="30">
</td>
<td width="1" height="23">
</td>
</tr>
<tr>
<td rowspan="3" background="images/chat/html_17.gif" width="8" height="16">
</td>
<td width="1" height="1">
</td>
</tr>
<tr>
<td colspan="2" background="images/chat/html_18.gif" width="3" height="6">
</td>
<td background="images/chat/spacer.gif" width="1" height="6">
</td>
</tr>
<tr>
<td colspan="9" background="images/chat/html_19.gif" width="711" height="9">
</td>
<td width="1" height="9" >
<img src="images/chat/spacer.gif" alt=""></td>
</tr>
<tr>
<td width="8" height="1">
<td width="81" height="1">
<td width="25" height="1">
<td width="451" height="1">
<td width="1" height="1">
<td width="83" height="1">
<td width="145" height="1">
<td width="1" height="1">
<td width="1" height="1">
<td width="2" height="1">
<td width="2" height="1">
<td></td>
</tr>
</table>
</center>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta http-equiv="Content-Language" content="he">
<script type="text/javascript">
function Object()
{
var check=false;
if (window.XMLHttpRequest)
{
try
{
check = new XMLHttpRequest();
}
catch(e)
{
check=false;
}
}
else if(window.ActiveXObject)
{
try
{
check=new ActiveXObject("Msxml2.HTMLHTTP");
}
catch(e)
{
try
{
check=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
check=false;
}
}
}
return check;
}
var http = Object();
function URLencode(strText)
{
strText=strText;
strText=strText.replace(/א/g,"%E0");
strText=strText.replace(/ב/g,"%E1");
strText=strText.replace(/ג/g,"%E2");
strText=strText.replace(/ד/g,"%E3");
strText=strText.replace(/ה/g,"%E4");
strText=strText.replace(/ו/g,"%E5");
strText=strText.replace(/ז/g,"%E6");
strText=strText.replace(/ח/g,"%E7");
strText=strText.replace(/ט/g,"%E8");
strText=strText.replace(/י/g,"%E9");
strText=strText.replace(/כ/g,"%EB");
strText=strText.replace(/ל/g,"%EC");
strText=strText.replace(/מ/g,"%EE");
strText=strText.replace(/נ/g,"%F0");
strText=strText.replace(/ס/g,"%F1");
strText=strText.replace(/ע/g,"%F2");
strText=strText.replace(/פ/g,"%F4");
strText=strText.replace(/צ/g,"%F6");
strText=strText.replace(/ק/g,"%F7");
strText=strText.replace(/ר/g,"%F8");
strText=strText.replace(/ש/g,"%F9");
strText=strText.replace(/ת/g,"%FA");
strText=strText.replace(/ם/g,"%ED");
strText=strText.replace(/ן/g,"%EF");
strText=strText.replace(/ף/g,"%F3");
strText=strText.replace(/ץ/g,"%F3");
return strText;
}
function ClearTextboxes()
{
document.getElementById('message').value = '';
}
function send(number)
{
http.open("get","ajax.php")
http.onreadystatechange = response;
http.send(null);
setTimeout("send()",2000);
}
function sendi(message)
{
http.open("get","ajax.php?insert="+URLencode(message))
http.onreadystatechange = response;
http.send(null);
}
function response()
{
if(http.readyState == 4)
{
document.getElementById("text").innerHTML=http.responseText;
}
}
</script>
</head>
<body onload="send()">
<center>
<table id="Table_01" width="801" height="241" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<img src="images/chat/html_01.gif" width="114" height="30" alt=""></td>
<td colspan="3" background="images/chat/html_02.gif" width="535" height="30">
</td>
<td colspan="3" background="images/chat/html_03.gif" width="147" height="30">
</td>
<td colspan="2" background="images/chat/html_04.gif" width="4" height="30">
</td>
<td width="1" height="30">
</td>
</tr>
<tr>
<td colspan="8" background="images/chat/html_05.gif" width="795" height="1">
</td>
<td colspan="2" rowspan="4" background="images/chat/html_06.gif" width="3" height="195">
</td>
<td rowspan="5" background="images/chat/html_07.gif" width="2" height="201">
</td>
<td background="images/chat/spacer.gif" width="1" height="1">
</td>
</tr>
<tr>
<td rowspan="2" background="images/chat/html_08.gif" width="8" height="193">
</td>
<td background="images/chat/html_09.gif" width="81" height="170">
</td>
<td colspan="2" background="images/chat/html_10.gif" width="476" height="170">
<div style="border: 0px none; overflow: auto; text-align:center; width:476px; height:170;" id="text"></div>
</td>
<td rowspan="4" background="images/chat/html_11.gif" width="1" height="200">
</td>
<td colspan="2" background="images/chat/html_12.gif" width="228" height="170">
<form id="form1" align="center">
<textarea style="border-width:0px; BACKGROUND-COLOR: #e0e1e5; WIDTH: 212; HEIGHT: 124; COLOR: #000000; OVERFLOW: auto; " rows="1" cols="1" dir="rtl" id="message" rows="8" cols="25"></textarea> <br>
<center>
<input type="button" onclick="sendi(message.value); ClearTextboxes();" value="שלח"/>
</center>
</form>
</td>
<td rowspan="4" background="images/chat/html_13.gif" width="1" height="200">
</td>
<td width="1" height="170">
</td>
</tr>
<tr>
<td rowspan="4" background="images/chat/html_14.gif" width="81" height="39">
</td>
<td colspan="2" rowspan="3" background="images/chat/html_15.gif" width="476" height="30">
</td>
<td colspan="2" rowspan="3" background="images/chat/html_16.gif" width="228" height="30">
</td>
<td width="1" height="23">
</td>
</tr>
<tr>
<td rowspan="3" background="images/chat/html_17.gif" width="8" height="16">
</td>
<td width="1" height="1">
</td>
</tr>
<tr>
<td colspan="2" background="images/chat/html_18.gif" width="3" height="6">
</td>
<td background="images/chat/spacer.gif" width="1" height="6">
</td>
</tr>
<tr>
<td colspan="9" background="images/chat/html_19.gif" width="711" height="9">
</td>
<td width="1" height="9" >
<img src="images/chat/spacer.gif" alt=""></td>
</tr>
<tr>
<td width="8" height="1">
<td width="81" height="1">
<td width="25" height="1">
<td width="451" height="1">
<td width="1" height="1">
<td width="83" height="1">
<td width="145" height="1">
<td width="1" height="1">
<td width="1" height="1">
<td width="2" height="1">
<td width="2" height="1">
<td></td>
</tr>
</table>
</center>
</body>
</html>