Monday, August 25, 2008

Detecting Information Card Support

Following javascript will help you to detect Information Card support of a given browser and display Information Card based logins accordingly.
function isSupported()

  var ieversion = -1;

  if (navigator.appName == 'Microsoft Internet Explorer' ) {

    if (new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null) {

      ieversion = parseFloat(regExp.$1);

      if (ieversion >= 7) {

        var embed = document.createElement("object");
        return ("" + embed.issuerPolicy != "undefined" && embed.isInstalled);


      if (ieversion < 0 && navigator.mimeTypes && navigator.mimeTypes.length) {

        var handler = navigator.mimeTypes['application/x-informationCard'];

        if (handler && handler.enabledPlugin)
        return true;

        if (document.addEventListener) {

          var event = document.createEvent("Events");

          if (top.IdentitySelectorAvailable == true) return true;



    return false; 



Information card support for IE 7+ is added using a browser add-on. To test the above script with IE 7+.


阿童木 said...

Even if youre not affluent abundant to breitling replica allow a Patek Philippe for your collection, there are added automated watch brands aural the ability of added boilerplate collectors. In fact, the industry is seeing a swiss replica watches about-face in watch absorption to adolescent collectors. Yes, even those in their 20's and 30's who accept the agency are searching at alpha and furthering watch collections.Watch-wearing saw a replica watches uk abatement as adaptable phones became commonplace, but timepieces are now generally apparent as both a appearance account and a way to accurate individuality.

dong dong23 said...

michael kors bags
coach outlet store online clearances
christian louboutin sale
hermes outlet
nhl jerseys
ralph lauren shirts
jordan shoes
coach outlet
prada shoes
saint laurent handbags