includes/clientside/static/misc.js
changeset 281 db8d5111ad20
parent 200 63fddf1335d9
child 295 f948557af068
equal deleted inserted replaced
277:ebcc138fe4e6 281:db8d5111ad20
   323   ajaxAuthLoginInnerSetup();
   323   ajaxAuthLoginInnerSetup();
   324 }
   324 }
   325 
   325 
   326 function ajaxAuthLoginInnerSetup()
   326 function ajaxAuthLoginInnerSetup()
   327 {
   327 {
       
   328   // let's hope this gets the image cached
       
   329   var _ = new Image(32, 32); 
       
   330   _.src = scriptPath + "/images/good.gif";
       
   331   
   328   ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() {
   332   ajaxGet(makeUrlNS('Special', 'Login', 'act=getkey'), function() {
   329       if ( ajax.readyState == 4 )
   333       if ( ajax.readyState == 4 )
   330       {
   334       {
   331         var response = String(ajax.responseText);
   335         var response = String(ajax.responseText);
   332         if ( response.substr(0,1) != '{' )
   336         if ( response.substr(0,1) != '{' )
   489         }
   493         }
   490         response = parseJSON(response);
   494         response = parseJSON(response);
   491         switch(response.result)
   495         switch(response.result)
   492         {
   496         {
   493           case 'success':
   497           case 'success':
       
   498             var success_win = '<div align="center" style="text-align: center;"> \
       
   499                   <p>Success.</p> \
       
   500                   <p><img alt=" " src="'+scriptPath+'/images/good.gif" /></p> \
       
   501                 </div>';
       
   502             ajax_auth_mb_cache.updateContent(success_win);
   494             if ( typeof(ajax_auth_prompt_cache) == 'function' )
   503             if ( typeof(ajax_auth_prompt_cache) == 'function' )
   495             {
   504             {
   496               ajax_auth_prompt_cache(response.key);
   505               ajax_auth_prompt_cache(response.key);
   497             }
   506             }
   498             break;
   507             break;