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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:19:26+00:00 2026-06-10T10:19:26+00:00

I am stumped… I’m building a responsive site that loads a large an graphic

  • 0

I am stumped… I’m building a responsive site that loads a large an graphic only on larger screens. It works great in IE9/FF/Chrome, but it doesn’t function in IE8.

Am anyone see what is making IE8 not fire? Here is my code:

<script type="text/javascript">
$(document).ready(function() {
   $(window).resize(function() {
    //small-screen
    if (window.innerWidth < 768) {$('#smiling-model').html('');}
    //end small-screen
    else if (window.innerWidth >= 768) {
        $('#smiling-model:empty').append('<img id="#smiling-model-img" src="images/smiling-model-500x456px.jpg" alt="Great Smile" />');
            }
    }).resize(); // trigger resize event
});
</script>

Here is the link to the actual site: http://www.orlickdental.com/

Thanks all!

Omar

  • 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-10T10:19:27+00:00Added an answer on June 10, 2026 at 10:19 am

    As far as I’m aware window.innerWidth isn’t supported by Internet Explorer below version 9

    For more information check this DOM Compatibility information provide by good old Quirksmode 🙂

    As you are already using jQuery you can rely on $(window).width(). However – in the spirit of knowledge – getting hold of the window’s dimensions was always a problem with IE. The main way to do it was to rely on the dimensions of the body element (using body.clientWidth) or to actually insert a specific div that was designed with css to fill the window’s dimensions (and then read the dimensions from that element). jQuery now obviously takes all the fun out of it 😉

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

Sidebar

Related Questions

I'm stumped. I've created an upload image process that works in every browser except
I have been very stumped by this one. I have a fairly large (~1500
Well I'm stumped. I'm writing an installation support add-on for Smart Install Maker that
I'm stumped here. I have an observable collection that holds business objects. I have
Stumped here. Posted a similar question before. We have a pretty large WPF app
I'm stumped, hopefully I've just done a dumb thing that I can fix easily.
Stumped with this one. Found out through Google webmaster tools that a .htm page
I'm stumped. I simply am trying to match a color from one site to
I've been stumped for bit on this one - I have a string that
I am completely stumped. I have a program that pulls information stored in a

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.