The "window.scrollTo" function is available if you click on an object that
is enabled for the scrolling option.
The main problem is that the js script is not forceen to handle html pages
which use div tags.
I have the same problem and I am working on a solution, but right now I
didn't had enough time to provide a valuable solution.
Fact is, that the window object doesn't access to the divs. And so, the
window.scrollTo is always set to the x and y values -> 0.
So, if you want to use this function you have to foresee not to use
overflow in your div tags...
On Thu, 29 Sep 2005 23:54:02 +0200, Julián García
<[EMAIL PROTECTED]> wrote:
Sorry for the late reply, I was out of town.
Yes, my rendered HTML is full of div's. And yes, I have specified the
parameter in my web.xml....
The only scroll js code I can see is:
function getScrolling() {
var x = 0; var y = 0;
if (document.body && document.body.scrollLeft &&
!isNaN(document.body.scrollLeft)) {
x = document.body.scrollLeft;
} else if (window.pageXOffset && !isNaN(window.pageXOffset)) {
x = window.pageXOffset;
}
if (document.body && document.body.scrollTop &&
!isNaN(document.body.scrollTop)) {
y = document.body.scrollTop;
} else if (window.pageYOffset && !isNaN(window.pageYOffset)) {
y = window.pageYOffset;
}
return x + "," + y;
}
A commandLink looks like <a href="#"
onclick="clear_content_3A_5Fid53();document.forms['content:_id53'].elements['autoScroll'].value=getScrolling();document.forms['content:_id53'].elements['content:_id53:_link_hidden_'].value='content:_id53:linkActualizar';document.forms['content:_id53'].elements['llave'].value='3';if(document.forms['content:_id53'].onsubmit){document.forms['content:_id53'].onsubmit();}document.forms['content:_id53'].submit();return
false;" id="content:_id53:linkActualizar">
<table class="menu_tabla"
cellpadding="0" cellspacing="0"
Its weird that I cannot see any reference to window.scrollTo in my
rendered HTML code
Thanks for any help.
Paul Klaer wrote:
Did you specified "AUTO_SCROLL" in web.xml?
How is your HTML page looking like? Are you using divs or something
else?
If you look in your HTML page, what values are set for the added
javascript "window.scrollTo()"?
On Fri, 23 Sep 2005 22:38:22 +0200, Julián García
<[EMAIL PROTECTED]> wrote:
The auto-scroll parameter is not working for me after reloading a page
when an actionListener executes....are there any specific requirements
in order to make it work?
Thanks.
Julian.