I'm trying to make my body content scroll at the same time as an iframe located within the body. This has to do with the age old problem of mouse focus on iframes. When my mouse reaches the iframe and it takes over focus, I would like the body to keep scrolling until the iframe is right at the top of the screen. After that I want to relinquish focus to the iframe. I don't mind if the iframe starts scrolling as soon as the mouse reaches it, so long as the main body keeps scrolling for a while.
Rather than have several different pages, an app was designed to have different sections, all on one page. To get to the different sections the browser is scrolled down. It may take several submits before everything gets filled out correctly. The user complained because the page would not scroll to the previous position, code was installed to save and restore the page position, but it doesn't always go to the same place. Sometimes it does. Sometimes it doesn't. Two text boxes are used to save position, and the page is regenerated with x and y as literals by the server. The problem seems to be what values are saved as the page is submitted. Code:
I've got a div with an id of messages - It is essentially a chat system however chat usually adds messages to the bottom of a list which means the messages do not get pushed down while you are reading them. This system instead adds the messages to the top. I need a way of finding the current scroll position so that when a new message is added the scroll remains in the same place.
Or, is there a better way to achieve what it is I'm trying to do? I just want to have my iframe automatically scroll to specific position on the webpage.
I am making an iphone app...the how-to section is basically one long page that shifts the view to a different div on a touch event. So, say I scroll down 50 lines on div1 and click a link to take me to the top of div2. How would I maintain the scroll position of div1 so when i click 'back' it shifts the view back to div1 and to the last position they were at?
how to automatically scroll the page inside an IFrame? I have an IFrame that has no scroll bars, but there's a bit of whitespace that I want to get rid of. Unfortunately, the page in question doesn't have an element in the right area with an ID that I can anchor to.
Running a loop that checks the position of the scroll bar. If the scroll bar height is the same as its div container it is always positioned at the bottom.Else the scroll bar is not positioned at the bottom and allowed to scroll freely.Problem I am having is telling the scroll bar to be positioned back at the bottom if the user scrolls to the bottom again.
Here is my Complete code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[code].....
In my WebApplication ,In vertical scrollbar scrolldown some position after the refreshing the page again scrollbar position goes to the top of the verticalscrollbar.How to get back the scroll position after the refreshing the page.
I would like to have the scroll box content to go to the same position that it had before the page is refreshed rather than go to the top of the scroll box content. In other words, if the user scrolls down, then refreshes the page, I want to scroll box content to come back to the same position after the refresh.
I have a fairly conventional page split into basically 2 divs one at the top of the viewport and the other at the bottom. The top div represents the header and the bottom div represents the content.
I have a problem in that the content loads in dynamically and when you scroll the content on a page and then click a link to navigate to another page the new content loads partially scrolled, and I need the scrollbar to always start at the top of the page so that the content also does.
Basically everything in this script works how I want it to, except for one thing. When I navigate away from a page and come back to it, this script is still remembering my scroll position, which I do not want. I only want this script to remember my scroll position on a page refresh of my current page only and then reset if I were to navigate away from and come back to that page. How would I go about modifying this script to work how I want it to?
I have a DIV with hegiht 500 px and overflow:scroll. I have 34000 A tags in it(each new line). Every A tag has its own ID. I want to scroll to these a tags so I need to know their position. How to find these?