aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 5
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: 8710
    
    6

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: 268
    
    4

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 | Read my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting scroll bar position
 
Similar Threads
JScrollPane
How to get JScrollPane to go to top left??
Positioning scroll bar
how to populate a large record set into JTable
Scroll bar does not retain its position after or before pack