JavaScript Reference/Javascript Methods/addReadRequest

Материал из Web эксперт
Перейти к: навигация, поиск

"addReadRequest()" Example

    
<html>
<head>
<script language="JavaScript">
    function function1() {
        navigator.userProfile.addReadRequest("Business.phone");
        var m = navigator.userProfile.addReadRequest("Business.phone");
        alert(m);
    }
</script></head>
<body>
<button onclick="function1();">Add an entry to read request</button>
</body>
</html>



"addReadRequest()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |userProfile                                                   |
+----------------+--------------------------------------------------------------+



"addReadRequest()" Syntax, Parameters and Note

Note:
Adds a vCard name to the read-requests queue in the userProfile object. 
The method returns true (successful) or false (failed).
    
Syntax:
    
navigator.userProfile.addReadRequest(param1)
window.clientInformation.userProfile.addReadRequest(param1)

Parameters:
    param1   Required; one of the standard vCard_name property values.