My Science Is Better

8Dec/110

Force IE to use the latest engine

If by some unknown reason IE8/9/10 are rendering your site in compatibility mode, ie IE7 mode or something lame like that, just force it to use the latest engine available:

<?php if (using_ie()) {header("X-UA-Compatible: IE=Edge"); ?><meta http-equiv="X-UA-Compatible" content="IE=Edge"/><?php } ?><!DOCTYPE html>

note that the code added right before the doctype declaration. the using_ie() boolean function below (credits to Simeon for this solution: http://www.php.net/manual/en/function.get-browser.php#101314)

function using_ie()
{
    $u_agent = $_SERVER['HTTP_USER_AGENT'];
    $ub = False;
    if(preg_match('/MSIE/i',$u_agent))
    {
        $ub = True;
    } 

    return $ub;
}
Tagged as: No Comments
23Sep/090

Google Chrome Frame IE Update released

After Google launched yesterday the Google Chrome Frame, a plugin that changes IE rendering engine (Trident) for WebKit, slicer@work created a nifty JavaScript that allows developers to present the plugin as an IE Update.

Although some of you might say this is not ethical as the user is being fooled, I DON'T GIVE A DAMN! I think it's a great idea to have as many people as possible have this plugin installed in order to GET RID OF IE!!

You can get the Google Chrome Frame IE Update and post comments on the authors site.

   

Tag Cloud

Categories

Archives

Akismet

Blogroll

Ads