Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
getheight returning "stale" value
Old 10-04-2010, 09:34 PM getheight returning "stale" value
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
I have a script that scrolls news items using two divs, one on top of the other, when one leaves the top of the container div it is moved to the bottom of the other. since the scrolling divs height is determined by the content I use prototype getHeight() to determine the height of the div. My site dynamically re-sizes when the browser window is resized, this includes the font size... you can see this at http://fibmasters.com/ my problem is that after resize the height of the divs changes because the font size of the content changes however subsequent getHeight returns the "old" value for the div height, creating a gap or overlap in the scrolling items. Does anyone know why this is happening and what a solution to the problem would be?
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-05-2010, 09:39 AM Re: getheight returning "stale" value
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
any particular browser?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-05-2010, 05:46 PM Re: getheight returning "stale" value
Banned

Posts: 1
Name: peter jerry
Trades: 0
I have studied some of the tutorials on AJAX and found them to be very interesting.Thanks for such useful information

peter jerry
peterjerry2010 is offline
Reply With Quote
View Public Profile
 
Old 10-05-2010, 11:18 PM Re: getheight returning "stale" value
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
No, does the same on any browser, I use firefox and firebug for troubleshooting... Since I use css "overflow: visible;" there is no height assigned to the divs. Did you take a look at the problem on the site?
__________________
Sleeping Troll, EMUSE, Mind Expansion...Truly serendipity!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to getheight returning "stale" value
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29894 seconds with 12 queries