home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 July & August
/
PCWorld_2005-07-08_cd.bin
/
komunikace
/
netscape
/
nsb-install-8-0.exe
/
chrome
/
aim.jar
/
content
/
aim
/
InviteAFriend3.js
< prev
next >
Wrap
Text File
|
2004-12-02
|
2KB
|
73 lines
function GetFields()
{
var emailaddr = document.getElementById("emailaddr").value;
var rv = {
emailaddr: { id: "emailaddr", value: emailaddr },
}
return rv;
}
function SetFields(element,set)
{
element = document.getElementById(element);
if(element.id == "emailaddr")
element.value = set;
}
function setNext(thelabel){
parent.wizardManager.wizardMap[parent.wizardManager.currentPageTag].next=thelabel
}
var Callback2 = new Object();
Callback2.OnRequestScreenNamesComplete = function(email,numScreenNames,pScreenNames)
{
parent.queryEmailAddress = parent.wizardManager.WSM.PageData.InviteAFriend1.emailaddress.value;
parent.numHits = numScreenNames;
for(var i=0;i<numScreenNames;i++){
parent.containerArray[i]=pScreenNames[i];
}
parent.wizardManager.LoadPage('InviteAFriend3_5',false);
}
Callback2.OnRequestScreenNamesError = function(email,pErrMsg)
{
dump(pErrMsg);
}
function cmdGetScrName(inEmail)
{
var IMServiceClass = Components.classes['@netscape.com/aim/IMManager;1'];
var pIIMManager = IMServiceClass.getService(Components.interfaces.nsIIMManager);
if (!pIIMManager)
{
dump ("cmdGetScrName:unable to get pIIMManager\n");
return;
}
var pIUserLookupManager = aimUserLookupManager();
if (!pIUserLookupManager)
{
dump("cmdGetScrName:unable to get pIUserLookupManager\n");
return;
}
pIUserLookupManager.RequestScreenNames(Callback2,inEmail);
}