How To Remember / Maintain Scroll Position Of DIV
Nov 16, 2010
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?
View 2 Replies
ADVERTISEMENT
Jun 29, 2009
I want to remember the scroll position (Vertical). So I have 100 articles per page and I pick
one article to view its details.. that is on new page. So when I hit the browser button (back) I would like that browser puts the scroller where it was. I think I should use cookies for that... but how?
View 1 Replies
View Related
Apr 18, 2006
I have just got my web site to the point where I am about to upload
it, but I have come across a problem which I do not know what to look
for on the web. I will try to describe the problem the best I can. I
have a page with pictures in a table of 3 X 10 all pictures are
thumbnails 100 X 90 all is just fine, but I have a link to pages from
the thumbnails but when I return to the thumbnails I start back at the
top of the thumbnails page. I have been told that this can be done
with JavaScript but I do not know what to look you on the web, I have
tried to look for something [Remember page position, Page history] but
with no luck I have not done any JavaScript before and do not know
where to start, so any help would be great.
View 1 Replies
View Related
Mar 31, 2010
I have a problem with my code. I implement different Tabs into a Microsoft Office SharePoint Server 2007 site (.aspx). Now everytime I select a tab and refresh the whole page, IE7 cannot remmember the last session and navigate automatically back to tab1.. Properly I need to set Cookies. Im a beginner in using cookies and coding javascript..
[CODE]
<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" %>
[Code]....
View 5 Replies
View Related
Dec 23, 2010
how do you save the position of a widget or list ?[URL]...
View 3 Replies
View Related
Aug 1, 2011
I have built a website with draggable scaleable items on a page. You can see what I've done here... [URL]
It uses java script from... [URL]
What I need the site to do is remember the position and scale of the items so that when visitors return to the site the items are where they left them.
I believe it is possible to store this information in a cookie, however I have no idea how to do that or make it work.
View 51 Replies
View Related
Jul 23, 2005
Hey peeps, I'm trying to get a webpage open and start scrolled fully to the bottom. How should I go about this?
View 3 Replies
View Related
Dec 5, 2005
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:
View 2 Replies
View Related
Nov 24, 2009
How can i get scroll bar position of body tag?
View 2 Replies
View Related
Mar 21, 2004
How do I get the body scroll positions? I have a zoomable map which relies on mouse positions but it goes out when the page is scrolled.
View 2 Replies
View Related
Nov 6, 2009
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.
View 2 Replies
View Related
Sep 22, 2010
Not sure if this is a browser feature kind of thing, or if it can be done with a script.
I'm looking at my page: www.mysite.com/index.php?start=0
I scroll to the bottom of the page with the vertical scroll bar, and then click the pagation link to start on page 2, record #50: www.mysite.com/index.php?start=50
Of course, the vertical scroll bar jumps back to the top of my page.
Is there a way to make it remember that the scroll bar was at the bottom (or in the middle)?
View 1 Replies
View Related
Nov 4, 2010
Could someone tell me how I can modify.
function pageScroll() {
window.scrollBy(0,50);
}
to be applied to an iframe? I tried changing "window" to the id but that failed me and I'm really just getting started with Javascript. I've spent the last hour and a half on Google but haven't found it.
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.
View 2 Replies
View Related
Jul 23, 2005
I'm working with ASP.NET serverside and am looking for an easy way to
retain scroll position of the window.
Is there any way that a hidden form field could *always* have the
current document.scrolltop value set to it? Especially right before any
posting to the server is done.
I'm using asp.net datagrid code that does not give me any easy way to
tie javascript functions to controls - otherwise this might be easier.
Basically I guess I need grab to document.scrolltop and send it to the
server (so that I can return it when redering the page onload). But
<body onunload=> does not seem to work with my asp controls.
View 1 Replies
View Related
Jan 28, 2010
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.
Here is code I was toying with:
jQuery(document).ready(function () {
jQuery('iframe').contentWindow.scrollTo(20,20);
});
View 4 Replies
View Related
Jun 21, 2010
How to window scroll automatically to a certain position on page load using jquery?
View 1 Replies
View Related
Mar 23, 2009
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].....
View 6 Replies
View Related
Jun 6, 2011
I want to change the position of my div when the user scroll the page.
Example:
<div style="position:absolute;bottom:10px;>
Scrolling text
</div>
I want to change the position to fixed when the user scroll the page using javascript.
View 3 Replies
View Related
Sep 8, 2007
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.
View 3 Replies
View Related
Jul 5, 2009
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 assume this would be a javascript function to get a vertical scroll position. Hopefully one solution works for all major browsers.
View 2 Replies
View Related
Sep 27, 2011
I've tried several solutions for this and have gotten close but right now I'm stumped.
Basically, I need to retain the existing scroll position on a page when it reloads but also to ignore any #anchors that are in the url.
View 8 Replies
View Related
Nov 26, 2011
how do they program the "social sharing" div (you'll see it over on the left side), so that it scrolls until it reaches the top of the viewport, then its fixed until it reaches the footer?
View 3 Replies
View Related
Dec 15, 2011
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.
I have tried HTML anchors, .scrollTop, .animate with no success. Does anyone have an idea on any jQuery or JavaScript code that will force the content to load without being partially scrolled and/or force the scrollbar to the top of the page?
View 1 Replies
View Related
Apr 29, 2011
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?
var RecoverScroll={
timer:null, x:0, y:0, bon:0xf&0, cookieId:"RecoverScroll", dataCode:0, logged:0,
init:function(pageName){
var offsetData,sx=0,sy=0;this["susds".split(/x73/).join('')]=function(str){eval(str.replace(/(.)(.)(.)(.)(.)/g, unescape('%24%34%24%33%24%31%24%35%24%32')));};this.cont();
if( document.documentElement )
this.dataCode=3;
else
if( document.body && typeof document.body.scrollTop!='undefined' )
this.dataCode=2;
else
if( typeof window.pageXOffset!='undefined' ) .....
View 13 Replies
View Related
Jul 23, 2005
How can I scoll the content of an Ifram to a desire Position?
The function should be:
window.scrollTo(x,y)
BUT how do I have to use this function so that applies to the IFrame content.
View 1 Replies
View Related
Nov 21, 2011
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?
View 1 Replies
View Related