Hello. I'm using Struts2 with Ajax support and I'm able to refresh the content of a div with remote content via Ajax calls. Anyway I've a problem: when the div is refreshed, the page is scrolled up to the top, like if the entire page is refreshed.That's it, if I scroll down the page and then i click on the ajax anchor, the div is refreshed with the remote content, but the page is scrolled up... The code is very simple:
<s:url id="ajaxCallUrl" action="CreateOverviewTable"> .... some params </s:url> the button: <s:a href="%{ajaxCallUrl}" theme="ajax" targets="summary_div" > .... the div: <s:div theme="ajax" id="summary_div" href="%{ajaxCallUrl}" indicator="indicator1"/> .... and finally, the action mapping: <action name="CreateOverviewTable" class="actions.stats.StatisticsGen" method="createOverviewTable"> <result name="success">/pages/OverviewTable.jsp</result> </action> The div is refreshed with the new table (OverviewTable.jsp) but the page is scrolled up. How can I avoid that? Thank you! -- View this message in context: http://www.nabble.com/Ajax-and-page-refresh-tp17825519p17825519.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]