Brian,

May of us have tried to solve that same issue using anchors and found them
unworkable.  Using DOM and JavaScript has given the following working result
(From good old[?] Dakota Jack, no less!):

> --- Dakota Jack <[EMAIL PROTECTED]> wrote:

Also, if you want similar things with other
browsers, here is a Mozilla deal:

<script language="javascript">
function SetScrollTo(strControlID)
{
var
objControl=document.getElementById(strControlID);
document.body.scrollTop = objControl.offsetTop;
// maybe object is not focusable, hidden or disabled.
try
{
        objControl.focus();
}
catch(e) {}
}

//usage:
// SetScrollTo("CONTROL_ID"); //the string is the id of
// the desired control in the html document.
</script>
---------------------------------------------

His notes say "Mozilla" but I've used it successfully in IE6 and FireFox.

Regards,
David

-----Original Message-----
From: Brian Bezanson [mailto:[EMAIL PROTECTED]
Sent: Friday, March 11, 2005 4:42 PM
To: user@struts.apache.org
Subject: Struts ActionForward to HTML <A NAME="xxx"> anchor

I'd like to know if it is possible to get a ActionForward to scroll my
target page to an anchor on the page created with the <a
name="xxx"></a>.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to