aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes IE sucks: compatibility mode turns on when executing javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE sucks: compatibility mode turns on when executing javascript" Watch "IE sucks: compatibility mode turns on when executing javascript" New topic
Author

IE sucks: compatibility mode turns on when executing javascript

Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
Internet explorer has decided that my javascript requires "compatibility mode" to be turned on.

I have 2 linked radio buttons that execute different pieces of JS. What is strange is the problem is on the No button but only happens if you click yes first.

the JS that is executed "onclick" of the no button is below. Any Ideas?

Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
I have solved this by putting a special tag in to tell IE to stay in IE8 mode as at http://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx
 
 
subject: IE sucks: compatibility mode turns on when executing javascript