Непомогло. Создал элементарный скрипт и даже он не работает на интернет сервере, как только копирую на локальный сервер все ОК.
Файл index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
<script type="text/javascript">
var xmlHttp=createXmlHttpRequestObject();
function createXmlHttpRequestObject() {
var xmlHttp;
if (window.ActiveXObject)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
xmlHttp=false;
}
}
else
{
try
{
xmlHttp=new XMLHttpRequest();
}
catch(e)
{
xmlHttp=false;
}
}
if (!xmlHttp)
alert("Ошибка создания объекта XMLHttpRequest");
else
return xmlHttp;
} //createXmlHttpRequestObject()
function process()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState==0)
{
xmlHttp.open("GET","script.php",true);
xmlHttp.onreadystatechange=handleServerResponse;
xmlHttp.send(null);
}
}
function handleServerResponse()
{
if (xmlHttp.readyState==4)
{
if (xmlHttp.status==200)
{
var Response=xmlHttp.responseText;
alert(Response);
}
else
{
alert("Error 200");
}
}
}
</script>
</head>
<body>
<form name="f1" id="f1">
<input type="button" name="bt1" id="bt1" value="OK" onclick="process();" />
</form>
</body>
</html>
Файл script.php:
<?php
print('It"s ajax request!');
?>
Файлы находятся в одном каталоге на сервере.
При выполнении IE ругается на строчку
var Response=xmlHttp.responseText;
Системная ошибка -1072896658
Ничего не понимаю