[CLOSED] Handling only Ajax Communication Errors

  1. #1

    [CLOSED] Handling only Ajax Communication Errors

    Hello,

    is there any way to handle only Ajax communication errors?
    We would like to show the standard exception message if an unhanded exception occurs on server-side, but we would like to show a custom message or to do some other action only on ajax communication error. We tried something like:

    <AjaxRequestException Handler="alert('Server busy, please try later')"></AjaxRequestException>
    But the message is show for every kind of error. How to filter only communication errors?

    Thank you in advance
    Regards
    Last edited by Daniil; Jul 16, 2012 at 9:39 PM. Reason: [CLOSED]
  2. #2
    Hi,

    The "response" argument is passed to an AjaxRequestException listener. You could analyze
    response.status
    and
    response.statusText
    to make a judgement to show an error message or not.

Similar Threads

  1. communication between children
    By threewonders in forum 1.x Help
    Replies: 5
    Last Post: Apr 11, 2012, 11:52 AM
  2. Replies: 3
    Last Post: Sep 15, 2011, 4:24 PM
  3. [CLOSED] Handling Un-Authenticated Ajax calls [401 Error]
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 22, 2011, 9:49 AM
  4. [CLOSED] Ajax File Download - Handling an Error
    By rcaunt in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Apr 12, 2010, 10:01 AM
  5. Communication Error.
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 0
    Last Post: Jan 21, 2009, 6:42 AM

Tags for this Thread

Posting Permissions