$Id$
+Thu Jan 12 00:40:28 EST 2006 ajc
+* Changes to instant messenger to work around IE bugs
+
Wed Jan 11 23:20:48 EST 2006 ajc
* More updates to instant messenger:
- Better delineation of input box. Added an icon and a slightly darker
}
/* Then schedule it to happen again a minute from now if the user is idle. */
- wprintf("<script type=\"text/javascript\"> "
- " function HandleSslp(sslg_xmlresponse) { "
- " sslg_response = sslg_xmlresponse.responseText.substr(0, 1); "
- " if (sslg_response == 'Y') { "
- " window.open('static/instant_messenger.html', 'CTDL_MESSENGER', "
- " 'width=700,height=400'); "
- " } "
- " } "
- " function CheckPager() { "
- " new Ajax.Request('sslg', { method: 'get', onSuccess: HandleSslp } ); "
- " } "
- " new PeriodicalExecuter(CheckPager, 30); "
- "</script>\n"
+ wprintf("<script type=\"text/javascript\"> \n"
+ " function HandleSslp(sslg_xmlresponse) { \n"
+ " sslg_response = sslg_xmlresponse.responseText.substr(0, 1); \n"
+ " if (sslg_response == 'Y') { \n"
+ " window.open('static/instant_messenger.html', 'CTDL_MESSENGER', \n"
+ " 'width=700,height=400'); \n"
+ " } \n"
+ " } \n"
+ " function CheckPager() { \n"
+ " new Ajax.Request('sslg', { method: 'get', parameters: Math.random(), \n"
+ " onSuccess: HandleSslp } ); \n"
+ " } \n"
+ " new PeriodicalExecuter(CheckPager, 30); \n"
+ "</script> \n"
);
}
/* ICONBAR */
if (do_htmlhead) {
- /* check for instant messages (these display in a new window) */
- page_popup();
/* check for ImportantMessages (these display in a div overlaying the main screen) */
if (strlen(WC->ImportantMessage) > 0) {
"</script>\n");
safestrncpy(WC->ImportantMessage, "", sizeof WC->ImportantMessage);
}
+
if ( (WC->logged_in) && (!unset_cookies) ) {
wprintf("<div id=\"iconbar\">");
do_selected_iconbar();
+
+ /* check for instant messages (these display in a new window) */
+ page_popup();
+ wprintf("</div>");
}
+
if (do_room_banner == 1) {
wprintf("<div id=\"banner\">\n");
embed_room_banner(NULL, navbar_default);