Name
userProfile — NN n/a IE 4 DOM n/a
Synopsis
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. Further details are available from Microsoft in the Internet Client Software Developer’s Kit. This object’s methods are not fully supported in the Macintosh version of Internet Explorer 4.
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
- IE
navigator.userProfile
Methods
|
|
|
|
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.