Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2003, 12:11 AM   PM User | #1
Crash1hd
Regular Coder

 
Join Date: Jul 2002
Location: 51° 03' -78" N -114° 05' 72" W
Posts: 617
Thanks: 0
Thanked 0 Times in 0 Posts
Crash1hd is an unknown quantity at this point
I was wondering (Re Scrolling)

I was wondering if there was a way to check and see if someone is needing to scroll on your page (if the page is longer then the information on the page) I am useing database entry (ASP) and on the page will show all the information in the field according to the first letter ext.. so say one field has 3 articles then of course in a page thats 1024*768 no scrolling needed but at say 800*600 scrolling would be needed now I want to add html at the bottem of the page that says click here to goto the top useing the #top ancor but if the person doesnt need to scoll I dont want the click here to goto the top to show up as if it was never part of the page????

Any thoughts??

Any Scripts???
Crash1hd is offline   Reply With Quote
Old 07-03-2003, 12:09 PM   PM User | #2
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
something like this

if (document.body.clientHeight < document.body.scrollHeight) {
// page scrolls
}
Graeme Hackston is offline   Reply With Quote
Old 07-03-2003, 08:31 PM   PM User | #3
Crash1hd
Regular Coder

 
Join Date: Jul 2002
Location: 51° 03' -78" N -114° 05' 72" W
Posts: 617
Thanks: 0
Thanked 0 Times in 0 Posts
Crash1hd is an unknown quantity at this point
That works Perfectly

Thankyou
Crash1hd is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:44 PM.


Advertisement
Log in to turn off these ads.