• Resolved ehouben

    (@ehouben)


    Hi there,

    I’m thinking of installing your plugin, but I have question about functionality. I’m trying to capture buddypress groups inside a wordpress static page using iframes (same domain). The problem with other iframe plugins is the fact that the buddypress activity stream relies on AJAX to expand/retract when one of the following takes place;

    New activity is posted
    Read more/Load more is clicked

    In these cases the height of the iframe cannot adjust dynamically, causing older content to drop below the frame border. I’m aware of certain scripts on stackoverflow that will solve the problem, but i’m looking for a plugin that can handle this. So my question would be: Can Advanced Iframe dynamicaly resize height when the iframed page expands?

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

Viewing 15 replies - 16 through 30 (of 67 total)
  • Plugin Author mdempfle

    (@mdempfle)

    Hi, Just a quick update. I have a working solution for jquery for my testpage already. I now have to make everything nice and configurable because the jQuery solution and the direct solution is very different.

    Thread Starter ehouben

    (@ehouben)

    Cool! Can’t wait to test it.

    Plugin Author mdempfle

    (@mdempfle)

    So – I have uploaded the new version under the link above.

    You now also have an new option for jquery. So you can switch between direct XMLHttpRequest and jQuery on the included site.
    Now at the onload event the ajaxComplete event handler is set.

    Thread Starter ehouben

    (@ehouben)

    Just tested this and I have to say I’m impressed. The iframe now resizes perfectly on the activity stream ‘load more’ (which is realy the most important). It does not resize when an activity comment box appears, nor when a single activity item is expanded because ‘read more’ is clicked. I’m guesing these functions may not use jquery?

    Plugin Author mdempfle

    (@mdempfle)

    Can you provide an url? maybe the “read more” is not an AJAX call but only a hidden area is shown there. Then maybe a solution could work which hooks on all clicks as well.

    Thread Starter ehouben

    (@ehouben)

    http://www.humania.nl/emotie/woede/
    iframed page is everything up to the second tab set (i.e. group header and activity stream).

    Plugin Author mdempfle

    (@mdempfle)

    There comes a “Sorry” page…

    Thread Starter ehouben

    (@ehouben)

    My fault; membership enabled. Let me just switch that off for you πŸ˜‰
    Should be fine now.

    Plugin Author mdempfle

    (@mdempfle)

    The read more is AJAX as well. The resize is fired but there you have a fade in effect (can be seen nicely in chrome).
    So after the replacement the final height is not reached.

    You can now use the timeout in the configuration to delay the resize for a few milliseconds. Start with 1000 or so ;).

    Thread Starter ehouben

    (@ehouben)

    Thanks, that solves the read more issue. Now the only thing that is not working is the drop down for replies/reactions. I’m guesing these use hidden areas. To see them, you will have to be logged in. I added a login box to the top of the test page, and made a temp account for you.

    UN: temp
    PW: mdempfle

    Plugin Author mdempfle

    (@mdempfle)

    There is no AJAX event at this.

    When I try this and open the last “reactions” the load more link is still there. This is strange because the resize is not called as expected.
    Which browser do you use?

    With jQuery all click events can be catched as well. This would be a different solution.

    Thread Starter ehouben

    (@ehouben)

    I’m using Chrome. For me, when i click the last reaction on the activity stream, it pushes the load more button below the border. The reply box itself is also half below the border.

    Plugin Author mdempfle

    (@mdempfle)

    You are right. In chrome the same happens to me.

    So catching all clicks and then do the resize as well should work…

    Thread Starter ehouben

    (@ehouben)

    I’ll wait for an update then. Thanks again for the amazing support you are offering on this subject πŸ™‚

    Plugin Author mdempfle

    (@mdempfle)

    done – please download it again…

    http://www.tinywebgallery.com/dl.php?file=advanced-iframe

Viewing 15 replies - 16 through 30 (of 67 total)

The topic ‘Dynamic Height Reload’ is closed to new replies.