[CLOSED] Hide AjaxRequestException Window

  1. #1

    [CLOSED] Hide AjaxRequestException Window

    Hi guys,

    i have a page with ResourceManager in my aspx page

    <ext:ResourceManager ID="ResourceManager1" runat="server" >
            <Listeners>
                <AjaxRequestException Fn="catchAjax" />
            </Listeners>
        </ext:ResourceManager>
    catchAjax JS function
    /*
    Catch ajax event
    */
    var catchAjax = function (response, result, el, eventType, action, extraParams, o)
    {
        result.success = true;
        result.errorMessage = "";
        return true;
    }
    i try to modify result or response but the windows after catchAjax function is always display. How display this window ?

    Regards

    Yoann
    Last edited by Daniil; Nov 12, 2012 at 1:12 PM. Reason: [CLOSED]
  2. #2
    Could you provide a running example?

    But if you are performing a Store load, please set ShowWarningOnFailure to false, as shown bellow:

    <ext:Store ShowWarningOnFailure="false" runat="server" />
  3. #3
    Hi Yoann and Raphael,

    There is also ResourceManager's ShowWarningOnAjaxFailure option. It is true by default. You can change it to false.

    Also you can return false from an AjaxRequestException listener or set
    o.cancelFailureWarning = true;
    to prevent a warning window.
    Last edited by Daniil; Nov 12, 2012 at 1:06 PM.
  4. #4
    Perfect, thanks a lot Daniil.
    thank you to you too raphael
    Yoann
  5. #5
    + 1 to you Daniil

Similar Threads

  1. [CLOSED] problem hide window
    By tactime10 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 18, 2012, 4:11 PM
  2. Why to discard loaded URL in window on hide?
    By dbassett74 in forum 1.x Help
    Replies: 5
    Last Post: Dec 26, 2011, 12:38 PM
  3. Unable to Hide the Window
    By vivekrane1986 in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2010, 4:48 AM
  4. [CLOSED] [1.0] Window show / hide from JS
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2010, 10:44 AM
  5. ext:Window Hide Handler
    By haltenberg in forum 1.x Help
    Replies: 8
    Last Post: Aug 05, 2008, 10:36 PM

Tags for this Thread

Posting Permissions