473,394 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

remembering div position

Hi,

I have a left div where there the menu is, and it is quite long, longer
than the web page, so it has a scroll bar.
My question is, is there a way to remember the div position once
clicked in one link below the screen and the page has been recharged?
I would like to avoid the users to scroll that div over and over and
should be nice if it presents the same position it had before clicked.

Thanks a lot,

stefano

Sep 19 '06 #1
1 2299

st*************@gmail.com wrote:
My question is, is there a way to remember the div position once
clicked in one link below the screen and the page has been recharged?
Yes, but it's tricky and involves JavaScript.

Only URLs (bookmarks etc.) are "memorable" (I'm ignoring <form>s for
the moment) Position of user controls isn't memorable.

Your solution is to use JavaScript hooked to the scrolling events of
the <divto then create a modified URL. Don't take too long doing it,
and don't do it too often, or else it will be unresponsive. Shortly
after scrolling has finished is fine.

Look at google maps for an example, although their "scrolling" is more
complex and they require a manual action to generate the bookmark.

Sep 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I...
0
by: Alex Wolff | last post by:
Hello, How do I keep IIS from caching/remembering username/password? Here is the situation: I have created an asp script which sits on server1. The script makes an http call to server2...
3
by: jason | last post by:
I've got this javascript routine (i found on google - thank you) in an asp.net page that on page reload sets the cursor of a textbox to the last line. It works great! Using a similar concept, I...
5
by: Ryan Ternier | last post by:
Hey! We need a solution for a problem. We're designing a site where users hate... absolutly hate... with a passion to sign in with a user name / password system. They want to sign in once, and...
5
AMT India
by: AMT India | last post by:
How can I disable the password remembering feature of Browser (Both IE and Firefox) using JS ?
11
by: Mark | last post by:
My browser "remembers" what I typed previously in text fields and gives me a drop-list of "suggestions" as I type. I generally like this feature, but was asked to disable it for a specific text...
1
by: spynx | last post by:
import javax.swing.JOptionPane; import java.io.*; import java.util.Arrays; public class election5 { public static void main( String args ) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.