javascript userProfile Description

userProfileNN n/a IE 4(Win) DOM n/a  

  

The userProfile object reflects numerous pieces of information stored in the browser's user profile for the current user. This object has four methods that:

  • Let you queue requests for individual fields of the profile (items such as name, mailing address, phone numbers, and so on)

  • Display the request dialog that lets users see what you're asking for and disallow specific items or the whole thing

  • Grab the information

  • Clear the request queue

 

Once the information is retrieved (with the user's permission), it can be slipped into form elements (visible or hidden) for submission to the server. Compatibility listings here indicate support in IE for Windows only. While IE for Macintosh accepts the method calls without error, there is no functionality attached to those methods. Further details on the user profile are available from Microsoft at http://msdn.microsoft.com/workshop/management/profile/profile_assistant.asp.

 
Example
 
navigator.userProfile.addReadRequest("vcard.displayname");
navigator.userProfile.doReadRequest("3", "MegaCorp Customer Service");
var custName = navigator.userProfile.getAttribute("vcard.displayname");
navigator.userProfile.clearRequest( );
if (custName) {
    ...
}
 
Object Model Reference
 
navigator.userProfile
 
Object-Specific Properties

None.

 
Object-Specific Methods
 
addReadRequest( )clearRequest( )doReadRequest( )getAttribute( )
 
Object-Specific Event Handler Properties

None.


2167,Nickname,Homepage or email,Comments here,Add comment