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

Functionality to scroll into view? (autoamtically scroll to contentsin the bottom right corner of a large web page)

Hi there

I am quite new to web technologies and wondered if there is anything
available so that when a large web page is opened (containing scroll
bars) you are automatically scrolled down and right to the contents
within the bottom right hand corner of the page.

Any ideas if this is possible and if so how would be very much
appreciated
Dec 19 '07 #1
8 2280
Update: I have seen java script which will scroll down the page
gradually, but I just want to refresh the page and then automatically
focus the user to the bottom right corner without them having to wait.

Thanks for your help in advance!
Dec 19 '07 #2
cr***********@hotmail.com said the following on 12/19/2007 9:41 AM:
Update: I have seen java script which will scroll down the page
gradually, but I just want to refresh the page and then automatically
focus the user to the bottom right corner without them having to wait.

Thanks for your help in advance!
Put an anchor at the bottom of the page, set the hash property on the
location. Or, just link directly to the hash.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 19 '07 #3
On Dec 19, 3:48 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
crazychris...@hotmail.com said the following on 12/19/2007 9:41 AM:
Update: I have seen java script which will scroll down the page
gradually, but I just want to refresh the page and then automatically
focus the user to the bottom right corner without them having to wait.
Thanks for your help in advance!

Put an anchor at the bottom of the page, set the hash property on the
location. Or, just link directly to the hash.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
Cheers Randy, very clever!
Dec 19 '07 #4
On Dec 19, 3:48 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
crazychris...@hotmail.com said the following on 12/19/2007 9:41 AM:
Update: I have seen java script which will scroll down the page
gradually, but I just want to refresh the page and then automatically
focus the user to the bottom right corner without them having to wait.
Thanks for your help in advance!

Put an anchor at the bottom of the page, set the hash property on the
location. Or, just link directly to the hash.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
Cheers Randy, very clever!
Dec 19 '07 #5
Thanks for your advice too David
As the application needs to work across serveral browsers I am going
to try Randy's simple idea first but might well then look into
options.
Cheers
Dec 19 '07 #6
On Dec 19, 10:05 am, crazychris...@hotmail.com wrote:
Thanks for your advice too David
As the application needs to work across serveral browsers I am going
to try Randy's simple idea first but might well then look into
options.
Randy's suggestion should work fine if you control the content of the
page. However, if you need it to scroll exactly to the bottom (to the
pixel), you will probably need to measure and call the scrollTo
method.

Also, you should link directly to the hash. Setting the hash on load
has been known to cause issues with Safari.
Dec 19 '07 #7
On Dec 19, 11:28 am, David Mark <dmark.cins...@gmail.comwrote:
On Dec 19, 10:05 am, crazychris...@hotmail.com wrote:
Thanks for your advice too David
As the application needs to work across serveral browsers I am going
to try Randy's simple idea first but might well then look into
options.

Randy's suggestion should work fine if you control the content of the
page. However, if you need it to scroll exactly to the bottom (to the
pixel), you will probably need to measure and call the scrollTo
method.
Actually, scratch that. As the browser will always try to put the
link at the very top, the hash link trick will work. Scrolling all
the way to the right might be an issue though.
Dec 19 '07 #8
On Dec 19, 4:32 pm, David Mark <dmark.cins...@gmail.comwrote:
On Dec 19, 11:28 am, David Mark <dmark.cins...@gmail.comwrote:
On Dec 19, 10:05 am, crazychris...@hotmail.com wrote:
Thanks for your advice too David
As the application needs to work across serveral browsers I am going
to try Randy's simple idea first but might well then look into
options.
Randy's suggestion should work fine if you control the content of the
page. However, if you need it to scroll exactly to the bottom (to the
pixel), you will probably need to measure and call the scrollTo
method.

Actually, scratch that. As the browser will always try to put the
link at the very top, the hash link trick will work. Scrolling all
the way to the right might be an issue though.
Cheers for all your help, using the anchor seemed to work fine. As I
print a new png image to the page each time it is refreshed, I also
know the width it is going to be so can simply print <p style="margin-
left: Image_Widthpx" id="end"/below the image and use file.php#end
Dec 20 '07 #9

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

Similar topics

3
by: AES/newspost | last post by:
Just been involved with a web site where clicking a button on the main page opened a second (or secondary) window intended to function like a dialog box in Apple GUI jargon. (The primary page was...
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
5
by: Aidan | last post by:
Greetings all, I'm trying to build a div based layout for a mambo template (work in progress), and I'm having a strange problem, 2 acctually, with scroll bars in IE. I've tried everything I can...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
1
by: Tamir Kamara | last post by:
Hi, I have a page with several server controls (textboxes, datagrid, ...) which are positioned absolutely from the right of the page (like RIGHT: 25px; POSITION: absolute;). that works well if...
69
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow...
0
by: jasondavidcarr | last post by:
Hello all, I have a "comments" page that contains three sections; the article to be commented on is on top, followed by previous comments, and on the bottom a place to add new comments. It's a...
0
by: Sobin | last post by:
I am new to ASP .NET. In my webpage there is a panel with vertical scroll bar enabled.Inside the panel there is a treeview control.I'm populating its nodes at run time through database...
1
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. The project also uses masterpages. On the...
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
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...
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
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
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...
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...

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.