2b124f9d478afdc2310d66c2fc05ce988afa58e5
[citadel.git] / webcit / static / t / paging / anchor.html
1 <script type="text/javascript"> function HandleSslp(sslg_xmlresponse) {
2   sslg_response = sslg_xmlresponse.responseText.substr(0, 1);
3   if (sslg_response == 'Y') {
4    var oWin = window.open('static/instant_messenger.html', 'CTDL_MESSENGER',
5     'width=700,height=400');
6    if (oWin==null || typeof(oWin)=="undefined") {
7     PopUpFailed();
8    }
9   }
10  }
11  function CheckPager() {
12   new Ajax.Request('sslg', { method: 'get', parameters: ctdlRandomString(),
13    onSuccess: HandleSslp } );
14  }
15  new PeriodicalExecuter(CheckPager, 30);
16 </script>