UL 元素 | ul 對象
VAR 元素 | var 對象
DHTML 對象
提供了允許腳本對用戶配置信息請求讀取訪問并執(zhí)行讀取操作的方法。
成員表
方法 描述 addReadRequest 向讀取需求隊列中添加項。 clearRequest 清除讀取需求隊列中的全部需求,以便準備一個新的配置信息需求。 doReadRequest 執(zhí)行所有位于讀取需求隊列中的需求。 getAttribute 從 userProfile 對象中返回命名屬性的值。 setAttribute 設置指定標簽屬性的值。
注釋
腳本請求將會在執(zhí)行讀寫前排隊。這將簡化用戶的體驗,因為每執(zhí)行一批請求的配置文件訪問許可只需要一次提示。
此對象在 Microsoft® Internet Explorer 4.0 的腳本中可用。
示例
這個腳本示例在客戶端運行,它將使用 userProfile 對象從配置文件信息中讀取不同的值。
// 讀取多個配置文件屬性時排隊。 navigator.userProfile.addReadRequest("vcard.displayname"); navigator.userProfile.addReadRequest("vcard.gender"); // 請求訪問信息。 navigator.userProfile.doReadRequest(usage-code, "Acme Corporation"); // 現(xiàn)在將執(zhí)行訪問信息的讀取操作。 name = navigator.userProfile.getAttribute("vcard.displayname"); gender = navigator.userProfile.getAttribute("vcard.gender"); // 腳本現(xiàn)在可以使用“name”和“gender”屬性個性化內(nèi)容 // 或者向服務器發(fā)送回信息了。 // 清除請求隊列以便將來再次請求。 navigator.userProfile.clearRequest();
標準信息
沒有應用于此對象的公共標準。
應用到
clientInformation, navigator