Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ##########################################################################
- # ET-Chat v3.x.x
- # Lizenz: CCPL - http://creativecommons.org/licenses/by-nc/2.0/de/
- # Autor: Evgeni Tcherkasski <SEDesign />
- # E-mail: info@s-e-d.de
- # WWW: http://www.sedesign.de
- ############################################################################*/
- function etchat_login() {
- if (!Element.visible('lay_pw')) $('pw').value='';
- $('submit_button').disabled = true;
- var myAjaxObj= new Ajax.Request(
- "./?CheckUserName",
- {
- onSuccess: function(ajaxResult) {
- if (ajaxResult.responseText==1) location.href='./?Chat';
- else{
- $('submit_button').disabled = false;
- if (ajaxResult.responseText=='pw' || ajaxResult.responseText=='pw+invisible') {
- Element.show('lay_pw');
- if (ajaxResult.responseText=='pw+invisible') Element.show('lay_invisible');
- Element.hide('lay_gender');
- $("pw").focus();
- } else {
- if (ajaxResult.responseText=='blacklist') location.href="./?AfterBlacklistInsertion";
- else if(!ajaxResult.responseText.empty()) alert(ajaxResult.responseText);
- else {
- $('username').value='';
- $('username').focus();
- }
- }
- }
- },
- postBody: $("login").serialize()
- }
- );
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement