[CLOSED] Scroll event on IFrame Panel

  1. #1

    [CLOSED] Scroll event on IFrame Panel

    Hi,

    I have a panel working as an IFrame.
    <ext:Panel ID="panel1" runat="server">
       <AutoLoad Url="IFramePage.aspx" Mode="IFrame" ShowMask="true" NoCache="true">
    </ext:Panel>
    I wanted to know if it is possible to get the scroll event inside the IFrame and bind it outside?

    Thanks.
    Last edited by Daniil; Oct 21, 2011 at 4:41 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I guess you know how to catch scroll event.
    http://forums.ext.net/showthread.php?15829

    About bubbling to a parent page.

    It can look this way.
    parent.SomeButtonClientId.fireEvent('click');
    or just
    parent.alert("Scroll");
  3. #3
    Hi Daniil,

    Thanks for your reply.

    This one is for another page that I'm working on where the mode is IFrame, what's happening is that the scroll bar is on the IFrame not on the panel and somehow the
    this.body.on
    was only getting the scroll bar on the panel.
  4. #4
    Do you want to bubble on a parent page an "scroll" event of all scrollbars?

    Well, there is no such functionality. Generally speaking, IFrame doesn't bubble any events on a parent page.

    You should listen an "scroll" event of a container with scrolling and pass it to a parent page by the way I demonstrated.

    If a page's body has scrolling, when you can listen its "scroll" event this way:
    Ext.getBody().on('scroll', onScroll);

Similar Threads

  1. [CLOSED] How to detect scroll event inside iframe
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 05, 2012, 1:31 AM
  2. Tab Autoheight Iframe Scroll
    By jordnlvr in forum 1.x Help
    Replies: 8
    Last Post: Nov 26, 2010, 6:20 PM
  3. window iframe scroll
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Nov 17, 2009, 1:18 AM
  4. grid scroll inside iframe
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Oct 29, 2009, 5:27 AM

Posting Permissions