Expand An Iframe During jQuery Animation When Contents Expand

后端 未结 3 633
旧巷少年郎
旧巷少年郎 2020-12-19 22:19

I\'m working on a user dashboard project where a user can interact with widgets (very similar to iGoogle dashboard). I\'m using jQueryUI portlets to hold iframes. The proble

相关标签:
3条回答
  • 2020-12-19 22:34

    From my research iframes cannot be expanded. They must be given a fixed width & height.

    0 讨论(0)
  • 2020-12-19 22:49

    The jquery accordion has an event in its API which is fired when the animation is complete:

    Triggered after a panel has been activated (after animation completes). http://api.jqueryui.com/accordion/#event-activate

    Using this event to trigger the iframe resizing works fine for me.

    0 讨论(0)
  • 2020-12-19 22:53

    it is possible, you have to make your one accordion to get the step-event of the performed animation.

    i've created a animated box. if the box is getting bigger or smaller, the step-event calls the function resizeIframe(height). this function again call the homonymous function resizeIframe(height) in the parent document. try this demo:

    http://algorhythm.de/tools/resizeable-iframe/index.html

    0 讨论(0)
提交回复
热议问题