Detecting CardSpace support, including FireFox
Detecting support for CardSpace, or more importantly information cards in the browser is pretty important, as it would allow the web developer the opportunity to appropriately show the "sign in with your information card" button/link or other text as needed.
The following Javascript will return true if you have support for information cards.
| function AreCardsSupported() { var IEVer = -1; if (navigator.appName == 'Microsoft Internet Explorer') if (new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})") .exec(navigator.userAgent) != null) IEVer = parseFloat( RegExp.$1 ); // Look for IE 7+. if( IEVer >= 6 ) { var embed = document.createElement("object"); embed.setAttribute("type", "application/x-informationcard"); if( ""+embed.issuerPolicy != "undefined" ) return true; return false; } // not IE (any version) if( IEVer < 0 && navigator.mimeTypes && navigator.mimeTypes.length) { // check to see if there is a mimeType handler. x = navigator.mimeTypes['application/x-informationcard']; if (x && x.enabledPlugin) return true; // check for the IdentitySelector event handler is there. var event = document.createEvent("Events"); event.initEvent("IdentitySelectorAvailable", true, true); top.dispatchEvent(event); if( top.IdentitySelectorAvailable == true) return true; } return false; } |
Labels: CardSpace
![]() |
|

147 Comments:
Nice. The old "use custom event to talk to chrome" trick. Get's the job done.
mfinkle
i'm writing a article about CardSpace.
Can i Use this JavaScript Source in my article?
Of course i'll write your name and website address in my article.
cf) my email address is thisisx@gmail.com
hhN4az Very good blog! Thanks!
OOKaGp Wonderful blog.
Please write anything else!
Please write anything else!
Nice Article.
Wonderful blog.
Good job!
Thanks to author.
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Nice Article.
1GaCOp write more, thanks.
XakSoy write more, thanks.
Thanks to author.
Hello all!
Hello all!
Magnific!
Please write anything else!
Wonderful blog.
Hello all!
Hello all!
Hello all!
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Good job!
Magnific!
Wonderful blog.
Nice Article.
Magnific!
Good job!
Hello all!
Good job!
Hello all!
Good job!
Good job!
Hello all!
Wonderful blog.
Good job!
Good job!
Good job!
C++ should have been called B
What is a free gift ? Aren't all gifts free?
Change is inevitable, except from a vending machine.
Oops. My brain just hit a bad sector.
640K ought to be enough for anybody. - Bill Gates 81
Nice Article.
Please write anything else!
Give me ambiguity or give me something else.
What is a free gift ? Aren't all gifts free?
Suicidal twin kills sister by mistake!
Magnific!
Friends help you move. Real friends help you move bodies
Calvin, we will not have an anatomically correct snowman!
Oops. My brain just hit a bad sector.
When there's a will, I want to be in it.
Friends help you move. Real friends help you move bodies
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Save the whales, collect the whole set
Suicidal twin kills sister by mistake!
All generalizations are false, including this one.
What is a free gift ? Aren't all gifts free?
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Energizer Bunny Arrested! Charged with battery.
Beam me aboard, Scotty..... Sure. Will a 2x10 do?
I don't suffer from insanity. I enjoy every minute of it.
Hello all!
Change is inevitable, except from a vending machine.
The gene pool could use a little chlorine.
I'm not a complete idiot, some parts are missing!
If ignorance is bliss, you must be orgasmic.
The gene pool could use a little chlorine.
If ignorance is bliss, you must be orgasmic.
Calvin, we will not have an anatomically correct snowman!
Save the whales, collect the whole set
Good job!
Give me ambiguity or give me something else.
Oops. My brain just hit a bad sector.
Wonderful blog.
Magnific!
Good job!
When there's a will, I want to be in it.
When there's a will, I want to be in it.
C++ should have been called B
Suicidal twin kills sister by mistake!
I don't suffer from insanity. I enjoy every minute of it.
Build a watch in 179 easy steps - by C. Forsberg.
Magnific!
A flashlight is a case for holding dead batteries.
Beam me aboard, Scotty..... Sure. Will a 2x10 do?
When there's a will, I want to be in it.
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Magnific!
When there's a will, I want to be in it.
I'm not a complete idiot, some parts are missing!
The gene pool could use a little chlorine.
The gene pool could use a little chlorine.
What is a free gift ? Aren't all gifts free?
A flashlight is a case for holding dead batteries.
Give me ambiguity or give me something else.
I'm not a complete idiot, some parts are missing!
Ever notice how fast Windows runs? Neither did I.
Magnific!
A flashlight is a case for holding dead batteries.
C++ should have been called B
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Suicidal twin kills sister by mistake!
640K ought to be enough for anybody. - Bill Gates 81
I'm not a complete idiot, some parts are missing!
Magnific!
Change is inevitable, except from a vending machine.
Ever notice how fast Windows runs? Neither did I.
Save the whales, collect the whole set
What is a free gift ? Aren't all gifts free?
Suicidal twin kills sister by mistake!
640K ought to be enough for anybody. - Bill Gates 81
If ignorance is bliss, you must be orgasmic.
Friends help you move. Real friends help you move bodies.
Calvin, we will not have an anatomically correct snowman!
Give me ambiguity or give me something else.
Give me ambiguity or give me something else.
Build a watch in 179 easy steps - by C. Forsberg.
640K ought to be enough for anybody. - Bill Gates 81
What is a free gift ? Aren't all gifts free?
Oops. My brain just hit a bad sector.
When there's a will, I want to be in it.
Build a watch in 179 easy steps - by C. Forsberg.
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
When there's a will, I want to be in it.
Friends help you move. Real friends help you move bodies.
Please write anything else!
Nice Article.
Give me ambiguity or give me something else.
The gene pool could use a little chlorine.
Good job!
Change is inevitable, except from a vending machine.
Calvin, we will not have an anatomically correct snowman!
Friends help you move. Real friends help you move bodies.
Suicidal twin kills sister by mistake!
Oops. My brain just hit a bad sector.
Clap on! , Clap off! clap@#&$NO CARRIER
Suicidal twin kills sister by mistake!
Please write anything else!
Suicidal twin kills sister by mistake!
wow gold cheap wow gold buy wow gold world of warcraft gold wow world of warcraft wow gold WoW Warrior WoW Hunter WoW Rogue WoW Paladin WoW Shaman WoW Priest WoW Mage WoW Druid WoW Warlock power leveling powerleveling wow power leveling wow powerleveling wow guides wow tips google排名 google左侧排名 google排名服务 百度推广 百度排名 网站推广 商业吧 机床 LED灯 电池 塑料 摄像机 移民 甲醇 染料 福州热线 体育博客 股票博客 游戏博客 魔兽博客 考试博客 汽车博客 房产博客 电脑博客 powerlin518 logo design website design web design 商标设计
The fourth wow power leveling latest game in wow power leveling Warcraft series is ‘wow power leveling’. Also known as wow power leveling, it represents a wow power leveling multiplayer online wow power leveling game, the best of wow power leveling kind. Initially, it was wow gold it be released in 2001, but wow powerleveling was delayed wow powerleveling 2004, thus wow powerleveling the 10 years ofwow powerleveling franchise of thiswow gold series. The world of warcraft power leveling was not world of warcraft power levelingfulfilling, because wow power levelproblems with wow power level server’s stability power leveling wow performance occurred, but power leveling wow game still power leveling wow a financial success powerleveling wow the most powerleveling wow game of its kind. The number cheap wow power leveling users that play Maple Story mesos, exceeds 8.5 MapleStory mesos, worldwide.As a form ms mesos,recognition for mesos,outstanding popularity, the game SilkRoad Gold, received aSRO Gold, of awards. Now the question eq2 plat, why is eq2 gold, game eq2 Platinum, popular? For anyoneEverQuest 2 Platinum, played the previous EverQuest 2 gold, and EverQuest 2 plat, already initiated lotro gold, the mysterious world lotr gold, the breathtaking Lord of the Rings online Gold, this Rolex Replica nothing but an Replica Rolex adventure that continues the story of ‘Warcraft III: Frozen Throne’, four years after conclusion, in the world of Azeroth. The game is online role-playing, the previous versions being online and offline strategy games. The major thrills and unique features are present as in every Blizzard game.
runescape money runescape gold runescape gold runescape money buy runescape gold buy runescape money runescape money runescape gold wow power leveling wow powerleveling Warcraft Power Leveling Warcraft PowerLeveling buy runescape gold buy runescape money runescape items runescape accounts runescape gp dofus kamas buy dofus kamas Guild Wars Gold buy Guild Wars Gold lotro gold buy lotro gold lotro gold buy lotro gold lotro gold buy lotro gold runescape money runescape power leveling runescape money runescape gold dofus kamas cheap runescape money cheap runescape gold Hellgate Palladium Hellgate London Palladium Hellgate money Tabula Rasa gold tabula rasa money Tabula Rasa Credit Tabula Rasa Credits Hellgate gold Hellgate London gold wow power leveling wow powerleveling Warcraft PowerLeveling Warcraft Power Leveling World of Warcraft PowerLeveling World of Warcraft Power Leveling runescape power leveling runescape powerleveling eve isk eve online isk eve isk eve online isk tibia gold Fiesta Silver Fiesta Gold SilkRoad Gold buy SilkRoad Gold runescape accounts buy runescape accounts rs2 accounts buy rs2 accounts runescape power leveling rs2 power leveling FFXI Gil buy FFXI Gil gaia gold buy gaia gold buy dofus kamas buy dofus kamas dofus kamas runescape accounts buy runescape accounts rs2 accounts buy rs2 accounts runescape power leveling rs2 power leveling rs2 gold buy rs2 gold runescape
Tactical Flashlights
Tactical Flashlight
Flashlight
Led Flashlight
Led Flashlights
Led Lights
Rechargeable Flashlights
Streamlight
Tactical Gear
Tactical Light
Tactical Lights
Xenon Flashlight
Xenon Flashlights
Palights
HID Flashlight
High-intensity Flashlights
Wolf-Eyes Flashlight
Wolf-Eyes Flashlights
rc helicopter
helicopter
airplane
r/c
rc
rc airplane
rc heli
r c helicopter
r c airplane
airplane model
remote control
video game
PS2
PS3
Playstation 2
Playstation 3
Nintendo DS
SONY PSP
WII
XBOX
XBOX 360
Gamecube
GBA
Post a Comment
Links to this post:
<< Home