JavaScript Reference/Javascript Methods/addReadRequest

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

"addReadRequest()" Example

   <source lang="javascript">
   

<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>


     </source>
   
  


"addReadRequest()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"addReadRequest()" Syntax, Parameters and Note

   <source lang="javascript">

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. 
   
     
     </source>