Welcome to WebmasterWorld Guest from 54.205.96.97

Forum Moderators: open

Force refresh + Javascript

   
1:33 pm on Apr 12, 2003 (gmt 0)

10+ Year Member



Hi guys'n'gals,

I've been playing around with CSS and Javascript to give visitors to my site the option of changing colour schemes and font-sizes etc, but I've noticed that when changing themes, IE doesn't quite re-flow the page properly, so a refresh is needed.

Is there any way to force a refresh every time a theme is changed?

1:54 pm on Apr 12, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Have you tried placing this at the end of your function?

history.go(0);

3:26 pm on Apr 12, 2003 (gmt 0)

10+ Year Member



A little update:

korkus2000 noticed a small problem with my Javascript (I StickyMailed him the code - too long to post here) that would have meant a refresh would have made the Javascript loop infinitely.

He suggested I have my site controls in a pop-up window, which then refreshes the parent window when closed, and it worked a treat. :)

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month