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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:54:14+00:00 2026-06-15T13:54:14+00:00

I have a perfectly working web page with using jQuery UI tabs on almost

  • 0

I have a perfectly working web page with using jQuery UI tabs on almost all browsers – it is not working on IE7.

All my code is rendered by asp file – data is included, JavaScript and CSS are included, and there is the code that is creating the tabs too.

My first problem was, that in IE7 I got the following message in alert box:

Internet Explorer cannot open the Internet site.

After several hours I have found a way to fix this using defer Attribute of the script tag.

Now, I get the following error:

Object doesn’t support property or method ‘tabs’

and when I check for jQuery and jQuery UI versions (to see if they are loded) I get result only for jQuery.

I suppose, that jQuery UI is not loaded or the script that create the tabs is executed before the library is loaded although it should be executed on document ready.

Has anyone face the same problem?

  • 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-15T13:54:15+00:00Added an answer on June 15, 2026 at 1:54 pm

    The script tag loading jQuery UI relies on the JavaScript in the script tag for jQuery having been run before the jQuery UI script is loaded. If you use the defer attribute on your jQuery script tag, you introduce a race condition and could end up with jQuery UI loading first and failing (not adding tabs to jQuery.fn). So it doesn’t matter that your code using the tabs function is in a ready callback.

    You shouldn’t need to use defer at all, so instead of trying to fix this, I’d recommend not using defer and posting a question about your original problem, as adding defer should not be the solution to it.

    If you want to keep using defer, though, remove your jQuery UI script tag and instead put this at the bottom of your page, just before the closing </body> tag:

    <script>
    (function() {
        var waitingForUI = false;
    
        loadScripts();
    
        function loadScripts() {
            if (window.jQuery && window.jQuery.fn.tabs) {
                // Both jQuery and jQuery UI are loaded.
                // ==> your code using `tabs` here <==
            }
            else {
                if (window.jQuery) {
                    // jQuery is loaded but not jQuery UI, go get it
                    // unless we've already started loading it
                    if (!waitingForUI) {
                        waitingForUI = true;
                        jQuery.getScript("/your/path/to/jquery/ui");
                    }
                }
                setTimeout(loadScripts, 10);
            }
        }
    })();
    </script>
    </body>
    

    That will wait for jQuery to be loaded, and then load the jQuery UI script, then trigger your code.

    Alternately, of course, just create your own script file containing both jQuery and jQuery UI followed by your code using tabs, and load that one file.

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

Sidebar

Related Questions

I have a pretty typical bookmarklet code that's working perfectly for me in all
I have a user form that is working perfectly. The page makes use of
I have a ASP.NET textbox autocomplete with JQuery, is working perfectly, i type part
I have two jQuery autocomplete textboxes on a mvc web page. One that returns
I have an Eclipse web project that was working perfectly fine until I converted
I'm currently working on a web application using HTML 5, CSS and JQuery. I
I have an ASP MVC 2 page that works perfectly using the development server
I have a web project working perfecly on my web server and on my
I have integrated Zxing library in my Android application, and it is Perfectly working,
I have rails app which are working perfectly in the local computer. But when

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.