Results 1 to 3 of 3

Thread: force browser to refreash after window resize

  1. #1
    Join Date
    Apr 2007
    Location
    Sydney, Aust - Downunder
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default force browser to refreash after window resize

    Hey all,

    run into abit of a problem with a tricky design for a website im doing.

    I am using javascript to position the footer block to the bottom of the browser window if content premits.

    it might be easier if you see for yourself what is happening so here is a link:
    http://www.massarcade.com/chris_test...solute_footer/

    So it works on pageload (the footer block gets positioned absolute bottom:0 )

    But when you resize the browser window, it gets stuffed up. But it fixes itself when you do a refresh in the adjusted browser window.

    The JS / CSS and code is all in the one page
    Would appreciate if anyone could help me with this, could even turn it into a dynamic drive script if people think its worthy.

    Cheers

  2. #2
    Join Date
    Apr 2007
    Location
    Sydney, Aust - Downunder
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ah, the

    Code:
     onresize="location.href=location.href"
    did the trick

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    For these sorts of things, you are much better off running the same code that you ran onload or as the page loaded than to reload the page onresize.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •