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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:42:41+00:00 2026-06-02T00:42:41+00:00

I have this: (function ($, window) { $.widget(mobile.multiview, $.mobile.widget, { options: { $lowerThresh: 320,

  • 0

I have this:

(function ($, window) {

$.widget("mobile.multiview", $.mobile.widget, {

    options: {

        $lowerThresh: 320,
        $upperThresh: 768
    },
    framer: function () {

        var self = $(this);
        if ($.mobile.media("screen and (max-width:320px)") || ($.mobile.browser.ie && $(window).width() < self.options.$lowerThresh)) {
            var framed = "small";
        } else if ($.mobile.media("screen and (min-width:768px)") || ($.mobile.browser.ie && $(window).width() >= self.options.$upperThresh)) {
            var framed = "large";
        } else {
            var framed = "medium";
        }

        console.log(framed);

    }
})(jQuery, this);

This works fine in all browser, only on IE8 it returns self.options.$lowerThresh is null or not an object.

Any idea, why this could be? I’m using Jquery 1.7.1 and Jquery Mobile 1.1.

Thanks for help!

  • 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-02T00:42:42+00:00Added an answer on June 2, 2026 at 12:42 am

    Got it.

    self = $(this);
    

    should be:

    self = $this;
    

    Then IE plays along.

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

Sidebar

Related Questions

I'm using a plugin structure like this: (function( $, window) { $.widget(mobile.multiview,$.mobile.widget, { options:
I have a plugin which uses variables like so: (function( $, window) { $.widget(mobile.multiview,$.mobile.widget,
I have this function working <script type=text/javascript> $(window).scroll(function() { if ($(window).scrollTop() == $(document).height() -
I have this script loaded on a page: (function() { window.alert('bookmarklet started'); function AjaxSuccess(data,
I have this form submit code: Event.observe(window, 'load', init, false); function init() { Event.observe('addressForm',
I have a function that renders RGB video frames to a window. This works
I have played with: https://github.com/experteer/autocompleteTrigger/ as following: (function ($, window, document, undefined) { $.widget(ui.autocompleteTrigger,
I have this function after an ajax post. success: function(){ window.location = 'morefive.php?document=' +
I have an Accordion function like this: $(#notaccordion).addClass(ui-accordion ui-widget ui-helper-reset) .find(h3) .addClass(ui-accordion-header ui-helper-reset ui-state-default
I have this function: public bool IsValidProduct(int productTypeId) { bool isValid = false; if

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.