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
/
AimConfirmAccount.js
< prev
next >
Wrap
Text File
|
2006-01-06
|
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");
}
}