473,396 Members | 2,018 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,396 software developers and data experts.

Maintain scroll postion on page return.

Hello,

I have slight delima and not sure how to go about this.

When a user clicks a link it brings them to a new page, when they have done what the need to do there is a link on that page to bring back to the original page that they were on.

My question is.

How can i retain the origianal scroll position that the user had on that page?

Any insight one can provide would be much apreciated.

B.
Jan 3 '08 #1
5 2329
jhardman
3,406 Expert 2GB
Does the link use an actual reference to the previous page, or the "back" command?

Jared
Jan 3 '08 #2
Does the link use an actual reference to the previous page, or the "back" command?

Jared
refernce

<a href="<%=strBaseURL & "&content=summary" & strBaseQueryString & "&vol=" & strVol & "&cat=" & strCat %>">
Jan 3 '08 #3
jhardman
3,406 Expert 2GB
try using javascript to go back. I'm not sure it will solve the problem, but it is the next thing I would try.
Expand|Select|Wrap|Line Numbers
  1.  <input type="button" value="Back to Previous Page"
  2. onClick="javascript: history.go(-1)">
The onclick statement can of course be put in any clickable element. Let me know if this works.

Jared
Jan 4 '08 #4
Yeah i tried that. works well if it was a straight page to page.

The other problem i forgot about is that when a user visits the page and selects what they want to view/e-mail to themselves it brings them to a forum to fill out. they only have to do this once, but every time they visit the site (completely close and repoen the browser). so i need a work around for the cookies aspect of the site :(
Jan 4 '08 #5
jhardman
3,406 Expert 2GB
I'm not sure I understand. Are you saying the first problem was solved? If yes, then congrats.

The second problem? I don't get it at all. You want users to only need to log in once? Then you just need to save cookies with the log in info, and have the login page read the cookies, if the user is accepted he/she should be forwarded on, otherwise send the user the login form. Let me know if this makes sense.

Jared
Jan 4 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
3
by: parm | last post by:
How do I preserve scroll position of a parent page when displaying a popup modal page. I have a page with a data grid on it (datagrid itself has no scrollbars, only the datagrid page has...
4
by: Woody Splawn | last post by:
I have a winform where I would like to explicitelty set the Horizontal scroll postion for a panel. I would have guessed something like the following would work but it does not ...
7
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this...
1
by: santosh singh | last post by:
Hi, I have one .aspx file which is generating whole page dynamically by taking all the HTML tags from SQL SERVER 2000 database . This .aspx is also containing one user control ( which contains two...
0
by: Keithb | last post by:
The maintain scroll position on postback feature works as expected with my site running under localhost on the development machine. When the files are posted to an IIS 6.0 web server running on a...
1
by: lg | last post by:
Is there a way to set/get vertical scroll postion without Javascript. At times I need to repaint the page but the page should scroll to certain postion depending on user input.
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.