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
/
AimConfirmAccount.js
< prev
next >
Wrap
Text File
|
2004-12-02
|
1KB
|
50 lines
var aimAdminAccountCallback = new Object();
var adminManager;
aimAdminAccountCallback.OnConfirmAccountComplete = function()
{
aimErrorBox(aimString("msg.confirmAccountSucess"));
window.close();
}
aimAdminAccountCallback.OnConfirmAccountError = function(errMsg)
{
aimErrorBox(errMsg);
window.close();
}
myCAAdminExecutionCallback = new Object();
myCAAdminExecutionCallback.ExecuteIfReady = function()
{
try {
adminManager.ConfirmAccount(aimAdminAccountCallback);
}
catch(ex) {
dump("Failed to call ConfirmAccount. EX= " + ex + "\n");
}
}
function AimConfirmAccountWndOnLoad() {
adminManager = aimAdminManager();
if (!adminManager) {
dump("Trying to create nsIAimAdminManager on my own..\n");
adminManager = Components.classes['@netscape.com/aim/IMManager;1'].getService(Components.interfaces.nsIIMManager).QueryInterface(Components.interfaces.nsIAimAdminManager);
if(!adminManager) {
dump("Unable to create nsIAimAdminManager..\n");
return;
}
}
try {
adminManager.ExecuteIfReady(myCAAdminExecutionCallback);
}
catch(e) {
dump("Unable to call ExecuteIfReady. ex = " + ex + "\n");
}
}