gpt4 book ai didi

php - 分页的原始脚本

转载 作者:可可西里 更新时间:2023-11-01 00:53:30 26 4
gpt4 key购买 nike

这是我的分页脚本,我想知道为什么我在 IE 中遇到这些错误:

function GetXmlHttpObject(){
var a;
try{
a=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(d){
try{
a=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(c)
{a=false;}
}
if(!a&&typeof XMLHttpRequest!="undefined")
{
try{
var a=new XMLHttpRequest();
}
catch(d){
var a=false;
}
}
return(a);
}
var i=0;var ii=0;var b=0;var bb=0;

function ForumPagination(c){
document.getElementById("forumsblock").style.display="none";
document.getElementById("WaitDiv").innerHTML="<img src='images/loading.gif' >";
xmlHttp=GetXmlHttpObject();
if(xmlHttp==null){
alert("Your browser does not support AJAX!");
return;
}
var a="indext.php?name=Dynamic_forums&pagenum="+c;
xmlHttp.open("GET",a,true);xmlHttp.onreadystatechange=ReplyLoading;xmlHttp.send(null);
}

function ReplyLoading(){
if(xmlHttp.readyState==2||xmlHttp.readyState==4){
var a=xmlHttp.responseText;
document.getElementById("WaitDiv").innerHTML=""+a;
}
}

脚本在 FF 中运行良好

顺便说一句,当我更改页面时,我不能再做一次。

Webpage error details

Message: 'getLoad' is undefined Line: 105 Char: 311 Code: 0 URI: http://nukelearn.com/

Message: The data necessary to complete this operation is not yet available.

Line: 9 Char: 74 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

Message: Object required Line: 3 Char: 1 Code: 0 URI: http://nukelearn.com/includes/199233334JOE.js

最佳答案

帮自己一个忙,使用jQuery : 您将不必再处理浏览器特定问题(至少对于 javascript)

关于php - 分页的原始脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2171928/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com