[CLOSED] Javascript Global Error Handling

  1. #1

    [CLOSED] Javascript Global Error Handling

    I found this post on error handling:
    http://www.sencha.com/forum/showthread.php?15881-Ext.Ajax.on(-quot-requestexception-quot-)

    And I did find some information on using:
    delete options.failure;
    delete options.callback;

    to prevent the message box. My main goal is to have all my error prompts behave and look exactly the same; so I have two question with regard to error handling:

    1) If I just want to use the same message box you do, is there some built-in function to call with parameters that will cause the same message box as a failed Ajax call? (yes, I know about Ext.Msg.show. I want a message box that is exactly like your Ajax failed message box only with different statusText or Title, etc.)

    2) If not, and I have to delete the options.callback, how can capture the calling object (like a grid) to release any mask or re-initialize it as part of the error handling? (essentially, prevent the default message box, but do all the other callback items)


    Thanks.
    Last edited by Daniil; Jun 26, 2012 at 9:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please investigate the following threads.
    http://forums.ext.net/showthread.php?17247
    http://forums.ext.net/showthread.php?17289

    If you will still have any questions, please ask.

Similar Threads

  1. Global Error Handling
    By wdk in forum 1.x Help
    Replies: 2
    Last Post: Apr 03, 2012, 2:34 AM
  2. [CLOSED] Global Exception Handling How to?
    By ISI in forum 1.x Premium Help
    Replies: 1
    Last Post: May 11, 2011, 11:57 AM
  3. [CLOSED] [1.0] Global error handling of DirectMethods
    By jchau in forum 1.x Premium Help
    Replies: 6
    Last Post: Jul 27, 2010, 7:59 PM
  4. Replies: 2
    Last Post: Jul 13, 2010, 2:03 PM
  5. Replies: 4
    Last Post: Sep 17, 2009, 7:45 AM

Tags for this Thread

Posting Permissions