WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Advanced iframe] Scroll to top of page on iframe reload

[Resolved] [Plugin: Advanced iframe] Scroll to top of page on iframe reload

  • Hi there,

    We just had an issue where an iframe reload resulted in the page being scrolled to the bottom. It’s apparently a common issue with iframes that have internal navigation and can be pretty confusing as the user has to scroll up to find the content.

    The solution was hacking advanced-iframe.php so that <iframe … was now

    <iframe onload='window.parent.window.scrollTo(0,0);'

    This was at about line 212. It’s less than ideal and it would be nice to have an option in the admin page to toggle this setting…

    HTH,

    Chris.

    http://wordpress.org/extend/plugins/advanced-iframe/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Chris,

    Can you provide more details on this hacking solution? I have the same issue of the reloaded result stayed at the bottom of the page.

    Thanks in advanced,
    Michael

    Plugin Author mdempfle

    @mdempfle

    Hi,
    Interesting. I will add an option that an onload event can be configured. This might gives an option to dynamically resize the iframe depending on the height of the content…

    I’ll check this.

    Best,
    Michael

    Plugin Author mdempfle

    @mdempfle

    Hi,
    I will implement this for version 2.0.

    I have it already running if the iframe page is on the same domain and will also provide a solution which works across domains if you can add some code to the page you want to include.

    Best, Michael

    Plugin Author mdempfle

    @mdempfle

    Someone want to test this new version before I release it?
    Just drop a note.

    Best, Michael

    Plugin Author mdempfle

    @mdempfle

    Version 2.0 is released.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Advanced iframe] Scroll to top of page on iframe reload’ is closed to new replies.