Availability: |
| |||
JavaScript syntax: | IE | myUserProfile = navigator.userProfile | ||
Object methods: | addReadRequest(), clearRequest(), doReadRequest(), getAttribute() |
Through this object, a script can access details about the user from the profile that the system maintains.
This is accomplished by the arcane method of queueing requests for access. Then having queued all the requests, you can ask the user for permission with a single dialog.
If the user grants permission, you can then access the userProfile values, after which the request queue can be cleared.
Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
addReadRequest() | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
clearRequest() | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
doReadRequest() | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
getAttribute() | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Prev | Home | Next |
userDefined object | Up | userProfile.addReadRequest() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |