getAttributegetAttribute*
*



Contents  *



Index  *Topic Contents
*Previous Topic: getAttribute
*Next Topic: getBookmark

getAttribute

Description

Returns the value of the named attribute. If read access for this attribute is not already available, this method simply returns the NULL string.

Syntax

navigator.userProfile.getAttribute(attributeName, attributeValue)

ParameterDescription
attributeName One of the standard vCard names (listed below); otherwise the request is ignored and nothing is returned.
attributeValue Value stored in the attributeName parameter.

Remarks

The following schema is used for the field names of the user data store. These names are specified when using the getAttribute method on the userProfile object. Please note that the format has changed from vCard_xxx to vCard.xxx and that the older format will no longer be supported.

vCard Names

vCard.EmailvCard.DisplayNamevCard.FirstName
vCard.LastNamevCard.MiddleNamevCard.Cellular
vCard.Gender*vCard.JobTitlevCard.Pager
vCard.CompanyvCard.DepartmentvCard.Notes
vCard.OfficevCard.HomepagevCard.Home.StreetAddress
vCard.Home.CityvCard.Home.StatevCard.Home.Zipcode
vCard.Home.CountryvCard.Home.PhonevCard.Home.Fax
vCard.Business.StreetAddressvCard.Business.CityvCard.Business.Phone
vCard.Business.FaxvCard.Business.URLvCard.Business.State
vCard.Business.CountryvCard.Business.Zipcode

Note (*) asterisk denotes extensions to the vCard schema, which will be referenced as X- elements as defined in the vCard schema.

Applies To

userProfile


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.