WordPress.org

Ready to get started?Download WordPress

Forums

Advanced iFrame
[resolved] [Plugin: Advanced iframe] Scroll to top of page on iframe reload (6 posts)

  1. ckm
    Member
    Posted 2 years ago #

    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/

  2. mwhwmg
    Member
    Posted 2 years ago #

    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

  3. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    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

  4. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    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

  5. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

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

    Best, Michael

  6. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    Version 2.0 is released.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.