[CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

  1. #1

    [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    I have the following panel:

    <ext:Panel runat="server" ID="pnlInvoiceReport">
        <AutoLoad Mode="IFrame" ManuallyTriggered="true" DiscardUrl="true" NoCache="true" Method="GET" PassParentSize="true" MaskMsg="Loading Report..." ShowMask="true" />
    </ext:Panel>
    I load a page into it by the followng script:

    pnlInvoiceReport.load({ url: 'TripReport.aspx',
            params: { tripId: h.hidTripId.getValue(),
                showIti: h.chkShowIti.getValue(),
                showFare: h.chkShowFare.getValue(),
                showPass: h.chkShowPass.getValue()
            },
            success: function(el, success, response, options) {
                alert('Hi');
                debugger;
            },
            callback: function(el, success, response, options) {
                alert('Hi');
                debugger;
            }
        });
    The callback is never invoked although the request completes successfully. The page is also loaded into the Panel's body iframe, but the callback is never triggered. Really need help with this one.
  2. #2

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    Hi,

    Fixed. Now callback is executed for iframe mode also.
    Please note the following things for iframe mode
    1. Callback is called in the success case only because iframe fires 'load' event in the success case only
    2. IFrame mode doesn't use XmlHttpRequest (browser loads page using GET request) therefore 'response' object is missed
  3. #3

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    Well, it took significant time for a reply here :( (almost on the edge or maybe a bit beyond the guaranteed initial response time). In the meantime, I developed a workaround, where the child page notifies the parent after it has been rendered successfully inside the parent.
  4. #4

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    Hi,

    Also there is Update event which fires after the page loading
  5. #5

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    Yes, I know about the Update event. However, I was looking for the callback for 2 reasons, I needed to access the raw XmlHttpRequest object (somehow forgot that iframe is loaded using Get request), and the original options used to load the iframe.
  6. #6

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    @r_honey - It's unclear to me if this topic has been [CLOSED]? Can you provide an update on whether you require further assistance regarding this issue.

    Geoffrey McGill
    Founder
  7. #7

    RE: [CLOSED] [1.0] Callback not invoked after async loading of a page into Panel

    Hi geoff, as I said in a post above, I am currently using a workaround, and have really not tested again after vlad says it was fixed in the SVN. And I currently have no plans to move back to the callback handler, as my workaround is working fine here.So, you can safely mark this thread as closed.

Similar Threads

  1. Async refresh page
    By fangmdu in forum 2.x Help
    Replies: 1
    Last Post: Jul 02, 2012, 9:03 PM
  2. Replies: 22
    Last Post: Jan 24, 2012, 8:27 AM
  3. Replies: 3
    Last Post: Aug 02, 2010, 12:06 PM
  4. Replies: 9
    Last Post: Mar 01, 2010, 10:49 PM
  5. Page Async Tasks
    By anand in forum 1.x Help
    Replies: 2
    Last Post: Jun 05, 2009, 3:28 PM

Posting Permissions