<script language="javascript">
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
//var xmlHttp = new XMLHttpRequest();
function sendAjax()
{
xmlHttp.Open("POST","/ajaxText/Reciver.aspx",true);
xmlHttp.send(null);
xmlHttp.onreadystatechange=ServerProcess;
}
function ServerProcess()
{
if(xmlHttp.readystate==4)
{
try
{
document.getElementById("ajaxDiv").innerHTML = xmlHttp.responseText;
}
catch(e)
{
window.alert(e);
}
}
}
window.setTimeout("sendAjax()",5000);
</script>在javascript中总是提示OBJECT ERROR的异常!!说是未知的运行时错误
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
//var xmlHttp = new XMLHttpRequest();
function sendAjax()
{
xmlHttp.Open("POST","/ajaxText/Reciver.aspx",true);
xmlHttp.send(null);
xmlHttp.onreadystatechange=ServerProcess;
}
function ServerProcess()
{
if(xmlHttp.readystate==4)
{
try
{
document.getElementById("ajaxDiv").innerHTML = xmlHttp.responseText;
}
catch(e)
{
window.alert(e);
}
}
}
window.setTimeout("sendAjax()",5000);
</script>在javascript中总是提示OBJECT ERROR的异常!!说是未知的运行时错误
解决方案 »
- 请教怎么将某一个子窗体置底(不要挡住了其它的子窗体)
- 有没有c# winform方面的项目实例书籍谢谢
- 如何获得 数组名称 字符串
- 急、急 C#有条件删除DBF数据库时出错
- 关于CheckBoxList的默认值问题...高分相赠
- 请问是不是WINDOWS应用程序,WEB应用程序,控制台应用程序,在没有按FRAMEWORK的机器上都不能运行呢???
- 在Winform中,DataGrid绑定数据源,当按Delete键时会自动删除所选记录,怎样让用户按Delete时不删除掉选定行记录??
- 如何将返回的XML转换成C#中可用的struct???
- 谁能帮我解决一个字体问题?
- 一段C#代码,能不能帮忙转成VB.NET的?
- Thread类的线程和线程池ThreadPool中的线程哪个速度更快?
- 请教加载数据的问题
这里出错,不知道什么原因!!