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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:01:00+00:00 2026-05-27T22:01:00+00:00

Since jQuery.browser is deprecated and jQuery.support is the recommended tool to tackle browser issues,

  • 0

Since jQuery.browser is deprecated and jQuery.support is the recommended tool to tackle browser issues, what’s the recommended way to handle the following problem?

The Fullscreen theme of the Galleria jquery plugin doesn’t work properly (wrong image positioning) in IE < 8 and in IE 8 and 9 compatibility view mode. Doctype is HTML 5, and turning off that mode with

<meta http-equiv="X-UA-Compatible" content="IE=edge"> 

does its job, but how do I use jQuery.support properly do check if the IE version is < 8 or the compatibility view is somehow still turned on (because then we use another theme for these users)?

Update: Here’s the code we use now (at the bottom of the html).

<script type="text/javascript">
    $(document).ready(function () {
        if ($.browser.msie && $.browser.version < 8) {
            Galleria.loadTheme('js/galleria/themes/classic/galleria.classic.min.js');
            $("#gallery").galleria({
            /* ... */
            });
        } else {
            Galleria.loadTheme('js/galleria/themes/fullscreen/galleria.fullscreen.min.js');
            $("#gallery").galleria({
            /* ... */
            });
        }
    });

</script>
  • 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-27T22:01:02+00:00Added an answer on May 27, 2026 at 10:01 pm

    how do I use jQuery.support properly do check if the IE version is < 8 or the compatibility view is somehow still turned on?

    jQuery.support isn’t designed to detect browser versions, but to detect specific browser bugs. If you can determine the source of this bug (possibly tested by the .boxModel property?), you could base your if-statement on that logic instead.

    Feature-detection is more robust than simply detecting browser versions as the tests ideally will work against any browser that is buggy – not necessarily just those in the IE family.

    If you don’t want to track down the source of that browser bug (and thus find the correct .support test), then this thread seems to give a slightly more “complete” test for browser version and compatbility mode detection.

    Here’s the code from that thread:

    isIE8CompatMode() {
        return $.browser.msie
            && $.browser.version == 7.0
            && document.documentMode
            && document.documentMode == 8;
    }
    

    And of course you’d probably want to modify this to use < and > tests.

    It still relies on $.browser, but seems to do extra detection for compatibility mode as well (via the IE-specific document.documentMode property).

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

Sidebar

Related Questions

Is there a better way then using jQuery.browser , or equivalents , for determining
Since I've started to use jQuery, I have been doing a lot more JavaScript
I am newbie to jQuery , just trying to learn it since last couple
Is it possible to use SimpleModal (jquery plugin) with ASP.NET MVC? Since it has
Since Apache Struts has deprecated Dojo plugin from Struts 2.1.x I am thinking to
I'm developing a browser-based mobile app built on top of jQuery Mobile, and some
I understand that after a browser loads jquery, generally it is added to the
I would like to clarify how browser scripting (such as javascript/jquery) differs from server
I'm having some issues with a jQuery AJAX call. My code works fine when
I'm trying to work through a problem I'm having with jQuery's dialog box in

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.