Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:18:44+00:00 2026-05-31T17:18:44+00:00

I put this in my JavaScript, and introduced a 500 error in my $.ajax,

  • 0

I put this in my JavaScript, and introduced a 500 error in my $.ajax, but this routine never got called:

$('#msg').ajaxError(function(myEvent, jqXHR, ajaxSettings, thrownError) {
    $(this).html(thrownError).addClass('alert alert-error');
});

If I add a .fail, then the .fail get’s called, but the ajaxError is never being invoked.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:18:45+00:00Added an answer on May 31, 2026 at 5:18 pm

    ajaxError() besides others are Global events and you will use these events whenever you have standard way of handling ALL ajax requests on you site ,instead of per ajax request. E.g showing some progress bar on success/failure ..

    Jquery ajax global events

    In above case , make sure your script fails to check the ajaxError e.g by requesting a invalid url etc .. Or Server responding invalid data

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to put this `<script src='http://resources.infolinks.com/js/infolinks_main.js' type='text/javascript'></script>` script in my website, but I
I am using jQuery and put this code in my javascript: function HideMe(itemID) {
if i put this code to show jquery datepicker : <script type=text/javascript> $(function ()
In order to put e-mail addresses on my sites, I use this Javascript :
I'm trying to put this data type in a Haskell Set, but I don't
Possible Duplicate: javascript WYSIWYG HTML editors? Im not quite sure how to put this
Put this in your location bar in IE javascript:location.href='http://www.google.com/search?q=something&lt=bar' Watch in horror as it
When I put this code outside of the <table> ...it will work. <script type=text/javascript>
Let's say I have this javascript: <script language=javascript type=text/javascript> function addtext() { var newtext
I found this code to get the image size on javascript: function getImgSize(imgSrc) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.