JavaScript Reference/Javascript Methods/doReadRequest

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"doReadRequest()" Example

   <source lang="javascript">
   

<html> <head> <script language="JavaScript"> function function1() {

   userProfile.doReadRequest(5, "Microsoft");
   alert("done"); 

} </script> </head> <body> <button onclick="function1();"> Perform all requests located in the read-requests queue </button> </body> </html>


     </source>
   
  


"doReadRequest()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"doReadRequest()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Executes all requests of the read-requests queue.

Syntax:

userProfile.doReadRequest(param1, param2, param3, param4, param5) Parameters:

   param1   Required; a code from 0 to 12. 
           From: http://msdn.microsoft.ru/workshop/author/dhtml/reference/methods/doreadrequest.asp    
           0  Used for system administration.
           1  Used for research and product development.
           2  Used for completion and support of the current transaction.
           3  Used to customize the content and design of a site.
           4  Used to improve the content of a site that includes advertisements.
           5  Used for notifying visitors about updates to the site.
           6  Used for contacting visitors for marketing of services or products.
           7  Used for linking other collected information.
           8  Used by a site for other purposes.
           9  Disclosed to others for customization or improvement of the content and design of the site.
           10  Disclosed to others, who may contact the user, for marketing of services or products.
           11  Disclosed to others, who may contact the user, for marketing of services or products. The user can ask a site not to do this.
           12  Disclosed to others for any other purpose.
   param2   Optional; the name of the requesting party.
   param3   Optional; the pages the user"s choice applies to in the future.
   param4   Optional; the path to the server requesting access.
   param5   Optional; the amount of time.
   
     
     </source>