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

Scrollbar max height - for autoscrolling

I have written an autoscrolling jscript function that will load a
specfic webpage, scroll the page at a reasonable speed and when it
reaches the bottom of the page will sleep(5) and then refresh the page.
The problem that I have run into is I cannot seem to find the actuall
length of the scrolled text (I can find the length via
client{Height|Width} and other window variables defined, but the length
of the scrolled text). Is there a way to 1) find the actuall length of
the scrolled text and or when the end of the page has been reached
(i.e. the browsers window has completely scrolled to the bottom of the
page)?

Thanks for any information

Jul 23 '05 #1
2 5629
<cm****@gmail.com> wrote in message news:11**********************@g14g2000cwa.googlegr oups.com...
I have written an autoscrolling jscript function that will load a
specfic webpage, scroll the page at a reasonable speed and when it
reaches the bottom of the page will sleep(5) and then refresh the page.
The problem that I have run into is I cannot seem to find the actuall
length of the scrolled text (I can find the length via
client{Height|Width} and other window variables defined, but the length
of the scrolled text). Is there a way to 1) find the actuall length of
the scrolled text and or when the end of the page has been reached
(i.e. the browsers window has completely scrolled to the bottom of the
page)?


After each movement, read either document.body.scrollTop or self.pageYOffset, whichever is active. When the result no
longer matches the value that you set, you're there.

Please do not add such a script to a published page.

--
Stephen Chalmers
547265617375726520627572696564206174204F2E532E2072 65663A205451323437393134

Jul 23 '05 #2
Thanks for the reply.

I am not sure what you mean by the 'value that you set'? Are you
refering to setting the YOffset to some random value?

This is for an internal kiosk only.

Thanks again.

Jul 23 '05 #3

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

Similar topics

2
by: darius | last post by:
Hello, I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to...
3
by: dan | last post by:
Hi folks, I have a very simple requirement - I want to have a row of divs of fixed size (but unknown number of them) This will be in a container div and scrolled by other means Is there any...
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
22
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
3
by: spielmann | last post by:
Hello I want to change the scrollbar size of windows, How can I do that with vb.net I have find this in VB6 but how can we convert simply this code. thx
2
by: Ray | last post by:
Hi, would someone tell me how to make scrollbar work under grid? I think I'm missing something to connect scrollbar with the grid. following is some sample code. it shows the scrollbar, but it...
3
by: nicky77 | last post by:
Hi, before you say it i know frames are bad practice - but i'm developing dynamic content on a site which has already been designed, so alas there's no option but to use them. Anyway, I just want to...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
2
by: Appu2008 | last post by:
HI, Iam creating a python application using Tkinter. Ia trying to attach a scrollbar to a listbox. Please tell me how can i set the height of the scrollbar to that of the listbox. Beacuse in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.