); if (login_result[1]!= undefined && login_result[1] == 'true' && page_js_exec!= undefined && page_js_exec!= '') { if (window. execScript){ window. execScript(page_js_exec); }else{ window.setTimeout(page_js_exec, 0); } }else if (login_result[2]!= undefined && login_result[2]) { window.location.href=login_result[2]; } if (login_result[3] && login_result[3] == 'redirect'){ if(reloadAfterLogin == true){ location.reload(true); } } document.getElementById('login_box'). innerHTML = login_result[0]; showHideBoxCookie('login_box'); dojo.parser.parse('login_box'); }, error: function(data){ //console.debug("An error occurred: ", data); /*if(loginRetries < 2){ dojo. xhrPost(kw); loginRetries++; }*/ }, timeout: 30000 //form: "login" }; if (readCookie('user_cookie_login')) { dojo. xhrGet(kw); } else { document.getElementById('login_box'). innerHTML = document.getElementById('login_js'). innerHTML; } kw.form = 'login'; function loginFuntion(){ //try{ dojo. xhrPost(kw); if(typeof(reloadPage)!== 'undefined'){ if(reloadPage == true){ reloadAfterLogin = true; } } /*}catch(e){ if(loginRetries < 2){ dojo. xhrPost(kw); loginRetries++; } }*/ }
Toi_Alexandru_1998 întreabă: