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
/
AimBuddyAlertMsg.js
< prev
next >
Wrap
Text File
|
2006-01-06
|
1KB
|
41 lines
/*
* Name: AimBuddyAlertMsgOnLoad
* Arguments: screenName
* Description: This function is called by the onload handler of buddyalert window. It sets the sendim and cancel buttons and also
* gets the screen name value
* Author: Prassanna<prass@netscape.com>
*/
var ScreenName=null;
function AimBuddyAlertMsgOnLoad() {
// Set the buddyname value from the window argument which has the user selected screenname frm listsetup/online tab
var buddyelem = document.getElementById('buddyname');
var buddyval = buddyelem.getAttribute('value');
ScreenName = window.arguments[0];
if (ScreenName != null) {
buddyelem.setAttribute('value', '"'+ScreenName+'" '+buddyval);
}
var buttons = document.getElementsByTagName("button");
for (i=0;i<buttons.length;i++) {
if (buttons[i].getAttribute('id') == "ok") buttons[i].label=aimString('msg.SendIMButton')
if (buttons[i].getAttribute('id') == "cancel") buttons[i].label=aimString('msg.okButton')
}
doSetOKCancel(onOKSend, 0);
}
/*
* Name: OnOKSend
* Arguments: None
* Description: This function when user clicks sendIM button in buddy alerts. This invokes the send IM window with screenName
* Prefilled.
* Author: Prassanna<prass@netscape.com>
*/
function onOKSend() {
aimIMInvokeIMForm(ScreenName);
top.window.close();
}