473,385 Members | 1,185 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,385 software developers and data experts.

Page Scrolling After Refresh

Hi,

I'm developping a very long web form.
When the user clicks some combos at the bottom of the form, the page is refreshed.
After the refresh, Is there a way to scroll the page down to the position that was clicked ? Maybe some JS ?

Thanks,

Olivier.
Nov 18 '05 #1
3 1415
Jos
>"Olivier" <ol***********@msn.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm developping a very long web form.
When the user clicks some combos at the bottom of the form, the page is refreshed.After the refresh, Is there a way to scroll the page down to the position

that was clicked ? Maybe some JS ?

Set SmartNavigation=True in the Page directive.

It only works in IE though :-(

--

Jos Branders
Nov 18 '05 #2
IE is enough for me, many thanks !

Olivier.

"Jos" <jo***************@fastmail.fm> wrote in message
news:#Y**************@TK2MSFTNGP12.phx.gbl...
"Olivier" <ol***********@msn.com> wrote in message

news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm developping a very long web form.
When the user clicks some combos at the bottom of the form, the page is

refreshed.
After the refresh, Is there a way to scroll the page down to the position

that was clicked ? Maybe some JS ?

Set SmartNavigation=True in the Page directive.

It only works in IE though :-(

--

Jos Branders

Nov 18 '05 #3
If you get to a point were SmartNavigation starts creating other problems, another solution is to create a javascript like the following.

function scrolltoctl(strID) {
try
{document.getElementById(strID).scrollIntoView();}
catch(e){}
}

Next create a hidden input on your form and give the body of your page an ID or body1 and a runat="server". Any time you have a postback set the value of the hidden input to the Id, and body1.attributes("onload") = "scrolltoctl('" & strID & "')" where strId is the value of the ID you want the page to return. This method isn't perfect but you can probably fool with it a bit to get the results you want.
"Olivier" <ol***********@msn.com> wrote in message news:Ol**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm developping a very long web form.
When the user clicks some combos at the bottom of the form, the page is refreshed.
After the refresh, Is there a way to scroll the page down to the position that was clicked ? Maybe some JS ?

Thanks,

Olivier.
Nov 18 '05 #4

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

Similar topics

4
by: Bill | last post by:
I have a page that scrolls out information from a database. When one of the records has been completed by the user, they press delete at the end of the row, and it sends the record id to a...
4
by: WM Chung | last post by:
Hi all, I have a long Web page which need vertical scrolling. If I work on the GUI at bottom of Web page, e.g. clicking a button or selecting an item in List box, the page refreshes. After page...
1
by: Arvind | last post by:
Hi I edit a cell in a DataGridView, and then would move to another cell in the DataGridView using mouse. Then the DataGridView as of now does scroll down to the last visited cell. But when I try...
6
by: apm | last post by:
All or rather anyone: I am developing web forms (.aspx pages) that accept inputs from the user at the top of the page. Near the bottom is a submit button. Also near the bottom is a text box...
1
by: pavanp | last post by:
Hi All, I am having a aspx page developed in C# it contains a marquee with some text scrolling. After looping this text for ten time say I am refreshing the page for updating the scrolling text...
3
by: vijay | last post by:
Hi, I am using struts frame work and in one of the jsp pages I have a bunch of IFRAMES like this.(This is in logic iterate and the recordId is incremented with that iteration)...
9
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
1
by: epower | last post by:
Hello, I am working on an ASP .NET application in Visual Studio 2005 and running IE7. This application has a page that contains an iframe which loads an .aspx page and hyperlinks that...
7
by: Kevin Wilcox | last post by:
Hi I'm trying to emulate, within access, the gantt chart timeline / task planner aspects of ms project. Creating the chart on the form has been easy enough; I use a series of unbound text boxes in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.