home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 December / PCWorld_2006-12_cd.bin / komunikace / netscape / nsb-install-8-1-2.exe / chrome / aim.jar / content / aim / InviteAFriend3.js < prev    next >
Text File  |  2006-01-06  |  2KB  |  73 lines

  1.  
  2. function GetFields()
  3. {
  4.  
  5.   var emailaddr = document.getElementById("emailaddr").value;
  6.   var rv = { 
  7.     emailaddr: { id: "emailaddr",      value: emailaddr       },
  8.  
  9.   }
  10.   return rv; 
  11.   
  12. }
  13.  
  14. function SetFields(element,set)
  15. {
  16.   element = document.getElementById(element);
  17.      if(element.id == "emailaddr")
  18.         element.value = set;
  19.  
  20. function setNext(thelabel){
  21.     parent.wizardManager.wizardMap[parent.wizardManager.currentPageTag].next=thelabel
  22. }
  23.  
  24. var Callback2 = new Object();
  25.  
  26.   
  27. Callback2.OnRequestScreenNamesComplete = function(email,numScreenNames,pScreenNames) 
  28. {
  29.  
  30.     parent.queryEmailAddress = parent.wizardManager.WSM.PageData.InviteAFriend1.emailaddress.value;
  31.     parent.numHits = numScreenNames;
  32.     for(var i=0;i<numScreenNames;i++){
  33.         parent.containerArray[i]=pScreenNames[i];
  34.     }
  35.     parent.wizardManager.LoadPage('InviteAFriend3_5',false);
  36. }
  37.  
  38. Callback2.OnRequestScreenNamesError = function(email,pErrMsg) 
  39. {
  40.     dump(pErrMsg);
  41. }
  42.  
  43.  
  44. function cmdGetScrName(inEmail)
  45. {
  46.  
  47.     var IMServiceClass = Components.classes['@netscape.com/aim/IMManager;1'];    
  48.     var pIIMManager  = IMServiceClass.getService(Components.interfaces.nsIIMManager);
  49.     
  50.     if (!pIIMManager)
  51.     {
  52.         dump ("cmdGetScrName:unable to get pIIMManager\n");
  53.         return;
  54.     }
  55.  
  56.     var pIUserLookupManager = aimUserLookupManager();
  57.  
  58.         
  59.     if (!pIUserLookupManager)
  60.     {
  61.         dump("cmdGetScrName:unable to get pIUserLookupManager\n");
  62.         return;
  63.     }
  64.  
  65.     
  66.     pIUserLookupManager.RequestScreenNames(Callback2,inEmail);
  67.  
  68. }
  69.  
  70.  
  71.  
  72.