Maybe i am doing something wrong but it did not worked for me.
i was using Eval to call the getcontent_height(); function, which seems to be the same thing you did, but it does not work 
the Ajax i am using is a simple call to xmlhttp and it returns some text that i then split and set into the different Divs i have set like this
Code:
var content = xmlhttp.responseText; //The content data which has been retrieved ***
if( content ){ //Make sure there is something in the content variable
var contenido = content.split("|");
document.getElementById('contenido').innerHTML = contenido[0];
document.getElementById('titulo').innerHTML = contenido[1];
document.getElementById('imagen').src = contenido[2];
//eval(contenido[3]);
contenido[0] has the new content followed by <span id="unique"></span>
contenido[1] and contenido [2] are just samples of other stuff
contenido[3] is the call to getcontent_height(); which I commented to test your code.
i set the code you gave me at the bottom of the script
Code:
function pollContent(){
if (document.getElementById('unique')){
getcontent_height();
return;
}
setTimeout("pollContent()", 60);
}
and i changed my links to look like this:
Code:
<a href="#" onclick="document.getElementById('unique').id='';javascript:getPage('2');pollContent();return false;">Page2</a>
and it does the same thing, it loads the new content and everything dandy, but it does not scroll 
any idea whats wrong?
Shanti
Bookmarks