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 456515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:28:43+00:00 2026-05-12T22:28:43+00:00

I have a jquery ui 1.7 tab and I am trying to abort the

  • 0

I have a jquery ui 1.7 tab and I am trying to “abort” the request.

so I have this in my document rdy.

   $.ajaxSetup(
        {
            'timeout': 10000,
            'error': function errorCallback()
            {
                jAlert('The server is acting a bit slow. Your request has timed out. Please try again.', 'Server Time Out Error.');
                $('#tabs').tabs('abort');
            }
        });

        $("#tabs").tabs();

However when looking my ajax requests with firebug the requests are not terminated. They keep on running.

I see the alert box so I know it is timing out but the request still keeps on going.

Edit

I just don’t know why this is happening. Like when a tab gets loaded up it goes to my server and that method always returns a partial view. So I am not sure if is the fact that it is a partial view or not screwing up. It just seems like the request still is trying to go even though I am trying to “abort” it.

  • 1 1 Answer
  • 1 View
  • 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-12T22:28:43+00:00Added an answer on May 12, 2026 at 10:28 pm

    I’d suggest using the ajaxOptions to the tabs() plugin. I use this mechanism successfully.

    $('#tabs').tabs({
        ajaxOptions: {
                          timeout: 10000,
                          error: function() {
                                     $('#tabs').tabs('abort');
                                 }
                     }
    });
    

    One reason that this would be preferred can be found in the documentation for the ajaxSetup method:

    See $.ajax for a description of all
    available options. Note: Do not set
    handlers for complete, error, or
    success functions with this method;
    use the global ajax events instead.

    If you were to supply defaults via ajaxSetup, you’d have to provide some defaults there, then other defaults with ajaxError, etc. since you are required to provide global defaults for these using the specific methods. It also restricts the application of these defaults, including aborting any tab methods, to just the tabs plugin, not affecting any other AJAX on the page.

    If you were to change your error handling, it’s possible that would work as well.

    $.ajaxSetup( { timeout : 10000 } );
    $('#tabs').ajaxError( function() { $(this).tabs('abort'); } );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery tab, and this is my code: $(document).ready(function() { //When page
I am trying to use jQuery(#element-id).parent().addClass('some-class'); I have a structure something like this: <div
Trying my hand with jQuery. I have this strange situation that i wish to
have a function in jquery to automatically create the tab elements for a product
Greetings, I have a problem using jqgrid and jquery tab (I am coding in
I have an asp.net mvc partial which contains a jquery ui tab control, marked
I am using jQuery UI 's tab view. I have included my HTML below,
I am trying to enable a disabled tab in Jquery but it doesn't work.
I'm just trying to preform a very simple jQuery action. I have two components:
I am trying to use Knockout in the following scenario: I have jquery UI

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.