SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 401 | Next

Vittorio Bertocci, Garrett Serack, Caleb Baker

"Understanding Windows CardSpace: An Introduction to the Concepts and Challenges of Digital Identities"

The most effective way to determine
whether a platform is supported is to use JavaScript to query the
capabilities of the browser and change the user interface accordingly.
After you have done that, you can adjust the user
interface to re?¬‚ect the client??™s abilities. Figure 5-3 summarizes
the validation process.
Here is a JavaScript function a web developer can use to interrogate
the browser??™s support of Information Cards:
function AreCardsSupported() {
///
/// Determines if information cards are supported
/// by the browser.
///

///
/// true-if the browser supports information cards.
Putting CardSpace to Work
Perform Client-
Side Detection
Does the
browser support
Information Cards? Yes No
Card-Enabled
Web Page

Web Page Without
Card Support

Figure 5-3 Ascertaining the client??™s capability to use Information
Cards
280 Guidance for a Relying Party
///

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 >= 7 ) {
var embed = document.


Pages:
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413