It is unclear to me whether, as you say, you need the page to scroll, or perhaps just the content area. Either way, here is where you want to edit the ajaxtabs.js script:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}
To scroll the content division to the top:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
{
document.getElementById(containerid).scrollTop=0;
document.getElementById(containerid).innerHTML=page_request.responseText
}
}
To scroll the whole page to the top:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
{
window.scrollTo(0,0);
document.getElementById(containerid).innerHTML=page_request.responseText
}
}
Bookmarks