Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess mod_write ajax正在通向主页_Ajax_.htaccess_Pagination - Fatal编程技术网

.htaccess mod_write ajax正在通向主页

.htaccess mod_write ajax正在通向主页,ajax,.htaccess,pagination,Ajax,.htaccess,Pagination,我有一个.htacess,它现在运行得很好,在这个页面上: 我有一个ajax分页文件prorajax.php 单击它可以进入index.php $pag1->setContainerPage(“”);这会变成一个ajax链接,但单击它会进入homepage index.php 这是分页类生成的链接 <a href='#' onclick='Submit_To_Ajax(\"$curentpage?xc=8&page=1$queriess\");'> &am

我有一个.htacess,它现在运行得很好,在这个页面上: 我有一个ajax分页文件prorajax.php
单击它可以进入index.php $pag1->setContainerPage(“”);这会变成一个ajax链接,但单击它会进入homepage index.php

这是分页类生成的链接

    <a href='#' onclick='Submit_To_Ajax(\"$curentpage?xc=8&page=1$queriess\");'>
      &lt;&lt; </a>

 This is the ajax function:

function Submit_To_Ajax(page) 
{
  xmlHttp = AjaxHttpObject();
  if (xmlHttp==null) 
  {
    alert("Your browser does not support AJAX !!!");
    return;
  }
  else
  {
  }
  xmlHttp.open("GET", page, true);
  xmlHttp.onreadystatechange=StateChanged;
  xmlHttp.send(null);
}
function StateChanged() {
    if (xmlHttp.readyState == 4) 
    {
        document.getElementById('AjaxDiv').innerHTML=xmlHttp.responseText;
    }
    else 
    {
        document.getElementById('AjaxDiv').innerHTML='<img src="img/loading.jpg">';
    }
}

这是ajax函数:
函数Submit_To_Ajax(第页)
{
xmlHttp=AjaxHttpObject();
if(xmlHttp==null)
{
警告(“您的浏览器不支持AJAX!!!”;
返回;
}
其他的
{
}
open(“GET”,page,true);
onreadystatechange=StateChanged;
xmlHttp.send(空);
}
函数StateChanged(){
if(xmlHttp.readyState==4)
{
document.getElementById('AjaxDiv')。innerHTML=xmlHttp.responseText;
}
其他的
{
document.getElementById('AjaxDiv')。innerHTML='';
}
}

解决了pagination.inc.php中的原因 href=“#”删除此选项可解决此问题