We help IT Professionals succeed at work.

Refresh on window resize not working

IDEASDesign asked
Medium Priority
Last Modified: 2008-03-04

There's a JS stockticker at the bottom of the page.  It's contained in a DIV.  When resizing the window, the stockticker is displayed outside of the DIV, as you would expect.  To combat this, I've tried adding an ONRESIZE attribute to the body tag.  This works fine if the two included JS files for the ticker are removed, but as long as they're included, the refresh doesn't work.

Thanks in advance for any help.
Watch Question

I dont see the problem :s


The problem is only visible in IE.  Sorry -- forgot to mention that.  Maximize IE and you'll see what I mean.

still no :s

your talking about this right?
46.89 (+1.22) LEN
59.45 (+2.25) ODP
37.70 (+0.45) TGT
53.33 (-0.23) NSANY
23.61 (0.00) PZZA
32.57 (+0.62) BBX

looks ok to me :/

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thanks for the help, but I got it working on my own.  My coldfusion code generates a JS file that controls the ticker.  In it was this line:
onresize = function(){stockticker.load();};

Which I changed to:
onresize = function(){location.reload();};

It's working fine now.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.