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

  • Home
  • SEARCH
  • 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 8993105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:07:04+00:00 2026-06-15T23:07:04+00:00

I have a page that uses jQuery UI Tabs that has both static and

  • 0

I have a page that uses jQuery UI Tabs that has both static and dynamic content. I am attempting to cache the tab content after the tab has been loaded, so if the user closes out of the tab and then wants to get back in, I don’t have to make another trip back to the server, and can make the tab show up at the end of the tab listing. This works great in FF, Chrome, Safari, Opera, and IEs 8 and 9. IE7, however, is giving me trouble.

Here is a jsFiddle that I have made that demonstrates the issue. The issue, from what I can tell, seems to be that the beforeLoad function is being called even after the content has been loaded once. I know that I should use the cache: true option for caching, but since the user can close a tab and then try to come back to it, I thought that this might be a little more graceful.

To replicate the problem:

  1. Click the Dynamic 1 button. A new tab will appear, Dyn 1, with some content in it
  2. Leave the tab (either by closing it, or clicking into a different tab)
  3. Click back into the Dyn 1 tab. The content will now show unable to load dynamic tab

This happens both when using jQuery UI’s cache: true option and when altering the tab’s href attribute in the load function, as I have done.

Has anyone had an experience similar to this and/or know what I may have done wrong to cause this?

Thank you. Your help is always appreciated.

  • 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-06-15T23:07:06+00:00Added an answer on June 15, 2026 at 11:07 pm

    I was never able to get an answer as to why this behavior was happening. I did, however, finally find a solution that worked. In case anyone else happens to stumble across this answer with the same issue, this is how I fixed it:

    Change:

    beforeLoad: function(evt, ui) {
        ui.jqXHR.error(function(jqXHR) {
            ui.panel.html('Unable to load application');
        });
    }
    

    To:

    beforeLoad: function(evt, ui) {
        ui.jqXHR.error(function(jqXHR) {
            if(jqXHR.statusText !== 'canceled') {
                ui.panel.html('Unable to load application');
            }
        });
    }
    

    Why the beforeLoad method is being called even though cache: true OR changing the href of the tab has happened, I am still unsure. I will submit this to the jQuery bug forum and see what they say. If it is a bug, I will try to update this post with the ticket.

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

Sidebar

Related Questions

I have a page that uses jQuery tabs to tabify a set of HTML
I have a page that uses JQuery UI Tabs and some other bits and
I have a PHP page that uses a jQuery ajax call. After I execute
I have a coldfusion page that uses JQuery UI TAB to load another coldfufion
I have a page that uses jQuery with a small glitch. I managed to
I have a web page that uses jquery ajax to grab the table markup
I have a page going here that uses jQuery: http://treethink.com/services What I am trying
I have a page that uses JQuery UI; in particular the Sortable interaction. The
I have a page that uses the jquery function: $(document).ready(function() { and I have
I have an HTML page that uses javascript / jquery to reload the contents

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.