File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Setting scroll bar position Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Setting scroll bar position" Watch "Setting scroll bar position" New topic
Author

Setting scroll bar position

vishal pradhan
Greenhorn

Joined: Aug 01, 2011
Posts: 4
Hi,

Can anyone tell me how should i set scroll bar position after postback in struts using anchor tag in URL.
I was using but this is not working in iPad.
I want to get solution so that this will work on both platform that is ipad and Win OS.

Thanks in anticipation
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8264

This doesn't sound like a Struts problem. This is a browser compatibility problem. I'll change the title and move it to a more applicable forum.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 165

If I understand the comments in this bug correctly, you should try using document.documentElement.scrollTop.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Setting scroll bar position
 
Similar Threads
Scroll bar does not retain its position after or before pack
JScrollPane
how to populate a large record set into JTable
Positioning scroll bar
How to get JScrollPane to go to top left??