2014-09-02 20 views
0

我有一個.htacess這是現在可以正常使用,在此頁: http://www.lebmotors.com/new/pror我有一個AJAX的分頁文件prorajax.php
點擊它,它得到的index.php $ PAG1 - > setContainerPage(「http://www.lebmotors.com/new/prorajax」);這將打開一個Ajax鏈接,但點擊它到達網頁的index.php代替的.htaccess mod_write AJAX是導致主頁

這是通過分頁類生成的鏈接

<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">'; 
    } 
} 

回答

0

解決了這個在pagination.inc.php HREF的原因=「 #「解決此問題可解決問題