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

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 09-04-2012, 06:06 AM   PM User | #1
kischi
New to the CF scene

 
Join Date: Sep 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
kischi is an unknown quantity at this point
Different in chrome than firefox

Hi,

I'm creating a website where I am using a already made scrollbar, and it works fine, but I am having problems with it on one of my sub-pages. It doesn't scroll all the way down, but it's only in some browsers.

In Firefox and IE it works fine but it doesn't scroll all the way down in chrome and safari.
But it's only on one sub-page.

you can see what I meen on: wearecrunch.dk/gammelsjuf
And then click on sposors

then you can see the difference from firefox and chrome for example, it doesn't scroll all the way down in chrome.

I'm kind of lost, I don't know if it is the HTML, CSS or the scroll javascript page.

Can someone please help me out does someone know what it could be.

If you'd like I can post any code that you want, in order for you to help me out.
It would really help me out alot.

Thank you
kischi is offline   Reply With Quote
Old 09-04-2012, 08:54 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,259
Thanks: 10
Thanked 532 Times in 526 Posts
devnull69 will become famous soon enough
First guess: The Sponsors tab is the only tab with images. It seems like the scrollbar is being generated before the images have been fully loaded and this causes problems in Webkit based browsers.

Try to wait until the images finished loading maybe using $(window).load() instead of $(document).ready()
devnull69 is offline   Reply With Quote
Old 09-04-2012, 09:50 AM   PM User | #3
kischi
New to the CF scene

 
Join Date: Sep 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
kischi is an unknown quantity at this point
Yeah I think you are right that that's the reason, because if I delete the pics then it works

But where is it I should insert $(window).load() I can't seem to find where I used: $(document).ready()

What file should I change it in? is it in the javascript?
kischi is offline   Reply With Quote
Old 09-04-2012, 10:34 AM   PM User | #4
kischi
New to the CF scene

 
Join Date: Sep 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
kischi is an unknown quantity at this point
I actually ended up getting it to work just by defining the width and hight of every picture. so now it works

Thank you very much for your help
kischi is offline   Reply With Quote
Old 09-04-2012, 03:35 PM   PM User | #5
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,259
Thanks: 10
Thanked 532 Times in 526 Posts
devnull69 will become famous soon enough
Yeah right ... I should have mentioned that in the first place but it just escaped me :-(
devnull69 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, html, javascript, scroll

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 06:00 AM.


Advertisement
Log in to turn off these ads.