Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Alb
    Alb is offline
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Code only works in IE compatibility mode?

    Hi guys,

    I’ve spent a few days trying to narrow down a problem I’m having on my website.

    I have a Flash application on the page – which calls a javascript function.

    This javascript function then updates the document.title every second.

    The code works great in firefox/chrome – but as always IE9 (maybe 8 and 7) has a problem.

    When you move the mouse – anywhere on page – the swf will stop moving.

    What I have now discovered is that if you turn on Internet Explorers compatibility mode it works.

    Could anyone advise me on what to check in my javascript / css / html – to see what compatibility mode is changing to make it work.

    I have tried changing the doctype to html5 – changed the content type to utf-8.

    I cannot work out what the problem could be

    All I can think is, that compatability mode must be changing some part of my code to make it work correctly. I would really like to find out what it is doing – and permantly apply this change to my site for all my users.


    Thanks for any help!

  • #2
    Alb
    Alb is offline
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just to update,

    I've added this to my htaccess file...

    Code:
    BrowserMatch MSIE best-standards-support
    Header set X-UA-Compatible IE=8 env=best-standards-support
    and that has fixed the problem!

    BUT...

    This isnt how i'd really like to fix the problem - with a hack

    I'd like to track down what was is causing the problem in the javascript code -and actually fix it.

    If anyone can still help me find out what to check in my code why it may not be working in IE -- that would be really great thanks

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    My crystal ball is broken so I am unable to see the JavaScript you are using so as to work out what is wrong with it.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    Alb
    Alb is offline
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So there is nothing i can look for that compatability mode is known to change?

    I just thought someone may have had a similar problem before.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I'd like to track down what was is causing the problem in the javascript code -and actually fix it.
    Could you post your code here?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Alb View Post
    So there is nothing i can look for that compatability mode is known to change?
    There are at least several thousand possibilities that might be in your code causing the problem but without seeing the code there is no way to narrow it down.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •