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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:55:38+00:00 2026-05-22T02:55:38+00:00

I am having weird issues with IE7 Compatibility mode and HTML5. Symptoms: Going directly

  • 0

I am having weird issues with IE7 Compatibility mode and HTML5.

Symptoms: Going directly to my homepage, using PHP can detect that it is IE7. After hitting a form submit button, and clicking the return back button, it no longer detects as IE7 even while still in compatibility mode. Must be refresh or reloaded to detect as IE7 again.

What can I do to make this more robust? Please don’t say to use get_browser and browscap. I do not wish to keep maintain on that browscap.ini.

in the html head:

<?php 
    /**
    *   IE 7 has trouble with jscrollpane, so disable for all IE except for 9 which works just fine.
    */ 
    $getBrowser = $_SERVER['HTTP_USER_AGENT']; 
    if( (!stristr($getBrowser,'MSIE')) || stristr($getBrowser,'MSIE 9')):
?>
<script src="jquery/jquery.mousewheel.js"></script>
<link  rel="stylesheet" href="styles/jquery.jscrollpane.css" />
<script src="jquery/jquery.jscrollpane.min.js"></script>
<script  src="jquery/js.js"></script>
<?php endif; ?>

Updated:

$getBrowser = $_SERVER['HTTP_USER_AGENT']; 
        if( stristr($getBrowser,'MSIE') === false)

Relocated js.js line to:

<!--[if IE 9 ]>
    <script  src="jquery/js.js"></script>
<![endif]-->

Still does the same thing when hitting back button.

Edit: Man…. I guess I am having some serious machine problems. The box with windows must have been screwed up after the windows update. Sorry for this crazy stuff. Works fine on another machine that has not ran windows update yet.

  • 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-22T02:55:39+00:00Added an answer on May 22, 2026 at 2:55 am

    I don’t have IE9 so I can’t try it but can’t you do something like this and place it on the <head>:

    <!--[if IE 9]>
         // your includes here
    <![endif]-->
    

    Not sure if it matters to you to still see the script tags included in the source but at least it won’t execute them unless the check was satisfied.

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

Sidebar

Related Questions

I am having issues removing a node using PHP DomDocument. I have some HTML
I'm having some issues with using PHP to convert ISO-8859-1 database content to UTF-8.
I'm having some weird issues with Xcode, and this is pretty much impossible to
I'm having some weird issues with pytz's .localize() function. Sometimes it wouldn't make adjustments
I'm having a weird issue that I can't track down... For context, I have
I'm having some serious issues using Zend_Lucene and foreign characters like åäö. These issues
I've been having some weird issues when it comes to make an AJAX request
I'm having some weird APPPATH issues due to differences between OS X and Debian
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it
I'm having some weird issues with dynamically populating a table in Javascript. Behold the

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.