Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes Safari to emulte like IE using X-UA-Compatible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Safari to emulte like IE using X-UA-Compatible" Watch "Safari to emulte like IE using X-UA-Compatible" New topic
Author

Safari to emulte like IE using X-UA-Compatible

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215


I am working on an older J2EE application which was made at the time when IE8 was the latest version of IE.

Now, the requirement was to make the application IE10 compatible as many issues were observed. So we simply put in the below header in httpd.conf file of Apache Server.



Now, the requirement is to make the application IPAD compatible.

The above changes are not working for IPAD Safari Browser

Development Team is using Safari for Windows and User-Agent as "Safari iOS 4.3.3 - IPad" and Testing Team is using an actual Ipad 2nd Gen.

Please suggest a generic solution (similar to the Apache config changes for IE10) as I don't want to sit and fix all the issues one by one as this application is valid only for a few more months and a new one is in Dev Phase.
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 268
    
    4

Satyajeet Kadam wrote:I am working on an older J2EE application which was made at the time when IE8 was the latest version of IE.


Which was two years after the first release of Safari for Windows, it's not an excuse for bad web development.

Satyajeet Kadam wrote:The above changes are not working for IPAD Safari Browser


Since the above changes are non-standard HTTP headers invented by Microsoft, why did you have any expectation that they would work?

Satyajeet Kadam wrote:Please suggest a generic solution (similar to the Apache config changes for IE10) as I don't want to sit and fix all the issues one by one as this application is valid only for a few more months and a new one is in Dev Phase.


There is no such generic solution. The 'solution' is not to write non-standard code which only works in IE8 in the first place. Either your management will have to wait for the new app, or they'll have to spend the time needed to fix the old one.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Q1)Is there any way we can pretend safari to render like IE?
Q2) Is there any meta tag to tell safari to render like IE?
Q3) There is meta tag for IE10 to emulate like IE8 similarly we are looking for safari.




Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 268
    
    4

Q1) No
Q2) No
Q3) You already posted the http header for IE10 to emulate IE8
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
Thanks Rob, we will change the code wherever testing team find issue on Safari.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Safari to emulte like IE using X-UA-Compatible
 
Similar Threads
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> does not work in IE9
"X-UA-Compatible" content="IE=7
JSP to rewrite parent html meta tag
parsing the user-agent to get OS version
Servlet 404 and JkMount configuration - encountered some problem (Apache/Tomcat)