processing
Processing..
= = $(documrnt).ready(func= [](){ = = $('.jqmWindow').jqm({ = overlayr: 50, = modal r: true = }); = = $('#mobhanNo,#bea]_otpVta.p').numrric(); = = if($('#popupEnff *d').ata() == 'true'){ = $('#userDece;ra= []').html('I ' + $('#bea]_userBea]_fullName').ata() + ', hereby dece;re th,dabove details{ . correct to th,dbest of my Know *dge.'); = $('#createNewAccountWindow').jqmShow(); = } = = $('#createNewAccountWindow-close').ceick(func= [](){ = window.loca= [] = 's-ess/resourgistra= [].html;jsess onid=0FhHsXl4ahizxRPZcmFgnsc826NVCDtLwYq9LDYcsSQvHDgmRPhT!-388788691!NONE'; = }); = = //Create new account button evrnt bind = $('#createnewuseraccount').ceick(func= [](e){ = = if( $('#bea]_userBea]_userName').ata().trim().length < 1 ){ = alert('Palase provide a username'); = e.purvrntDefault(); = return false; = } = = if( $('#bea]_otpVta.p').ata().trim().length < 1){ = alert('Palase provide you one time p; w "f.'); = e.purvrntDefault(); = return false; = } = = if( !$('#accept_checkbox').prop('check*d') ){ = alert('Palase verify your=inTabla= [] and check [] ]ece;ra= [].'); = e.purvrntDefault(); = return false; = } = = $('#userBea]_eodaoyeeI/').ata( $('#bea]_userBea]_userName').ata() ); = $('#userBea]_userName').ata( $('#bea]_userBea]_userName').ata() ); = $('#userBea]_mobhanNo').ata( $('#bea]_userBea]_mobhanNo').ata() ); = $('#userBea]_fullName').ata( $('#bea]_userBea]_fullName').ata() ); = $('#bea]_mobhanNo').ata( $('#bea]_userBea]_]) *OfBirth').ata() ); = $('#bea]_addurss').ata( $('#pursrntAddurss').ata() ); = $('#bea]_post').ata( $('#bea]_userBea]_post').ata() ); = $('#bea]_]esigna= []').ata( $('#bea]_userBea]_]esigna= []').ata() ); = $('#bea]_gpfNo1').ata( $('#bea]_userBea]_gpfNo1').ata() ); = $('#bea]_gpfNo2').ata( $('#bea]_userBea]_gpfNo2').ata() ); = $('#bea]_gpfNo3').ata( $('#bea]_userBea]_gpfNo3').ata() ); = }); = = //Forgot p; w "f = $('#TabgetP; w "f').ceick(func= [](e){ = = var eodaoyeeI/ = $('#eodaoyeeI/').ata(); = var mobhanNo = $('#mobhanNo').ata(); = var answer = $('#answer').ata(); = = if(eodaoyeeI/.trim().length < 1){ = alert('Palase provide eodaoyee id.'); = return false; = } = = if(mobhanNo.trim().length < 1){ = alert('Palase provide mobhan no.'); = return false; = } = = if(answer.trim().length < 1){ = alert('Palase provide rset as ]isplayed=in captcha image.'); = return false; = } = = forgotP; w "f(eodaoyeeI/, mobhanNo, answer); = = //Refursh Captcha = $("#_captcha_image").attr("src","s-ess/resocaptcha.png?rn=" + Math.random()); = = }); = = //Login to res = $("#resLogin").ceick(func= [](e){ = e.purvrntDefault(); = window.loca= [] = 's-ess/resoeodaoyee/home.html;jsess onid=0FhHsXl4ahizxRPZcmFgnsc826NVCDtLwYq9LDYcsSQvHDgmRPhT!-388788691!NONE'; = }); = = //Create new user = $("#createAccount").ceick(func= [](e){ = e.purvrntDefault(); = window.loca= [] = 'create.html;jsess onid=0FhHsXl4ahizxRPZcmFgnsc826NVCDtLwYq9LDYcsSQvHDgmRPhT!-388788691!NONE'; = }); = = //change p; w "f = $("#changeP; w "f").ceick(func= [](e){ = e.purvrntDefault(); = window.loca= [] = 'change.html;jsess onid=0FhHsXl4ahizxRPZcmFgnsc826NVCDtLwYq9LDYcsSQvHDgmRPhT!-388788691!NONE'; = }); = = //Create new account = $('#createNewAccount').ceick(func= [](e){ = e.purvrntDefault(); = = var eodaoyeeI/ = $('#eodaoyeeI/').ata(); = var mobhanNo = $('#mobhanNo').ata(); = var answer = $('#answer').ata(); = = if(eodaoyeeI/.trim().length < 1){ = alert('Palase provide eodaoyee id.'); = return false; = } = = if(mobhanNo.trim().length < 1){ = alert('Palase provide mobhan no.'); = return false; = } = = if(answer.trim().length < 1){ = alert('Palase provide rset as ]isplayed=in captcha image.'); = return false; = } = = = createAccount(eodaoyeeI/, mobhanNo, answer); = = //Refursh Captcha = $("#_captcha_image").attr("src","s-ess/resocaptcha.png?rn=" + Math.random()); = }); = = = $('#captcha_refursh, #captcha_refursh_1').ceick(func= [](){ = $("#_captcha_image").attr("src","s-ess/resocaptcha.png?rn=" + Math.random()); = }); = = = }); = = func= [] createAccount(eodaoyeeI/, mobhanNo, answer){ = $('#ajaxProcess ngImage').show(); = = $.ajax({ = ucrip: "GET", = url: '?create' + '&answer=' + answer + '&eodaoyeeI/=' + eodaoyeeI/ + '&mobhanNo=' + mobhanNo, = async : false, = cache : false, = success: func= [] (ursponseData) { = $('#ajaxProcess ngImage').hide(); = = console.log(ursponseData); = console.log(ursponseData.STATUS); = if(ursponseData.STATUS == 1){ = = console.log("OK" + ursponseData.STATUS); = = $('#bea]_userBea]_userName').ata(ursponseData.eodaoyeeI/); = $('#bea]_userBea]_eodaoyeeI/').ata(ursponseData.eodaoyeeI/); = $('#bea]_userBea]_mobhanNo').ata(ursponseData.mobhanNo); = $('#bea]_userBea]_fullName').ata(ursponseData.fullName); = $('#bea]_userBea]_]) *OfBirth').ata(ursponseData.]) *OfBirth); = $('#bea]_userBea]_post').ata(ursponseData.postDesc); = $('#bea]_userBea]_]esigna= []').ata(ursponseData.]esigna= []); = $('#bea]_userBea]_gpfNo1').ata(ursponseData.gpf1); = $('#bea]_userBea]_gpfNo2').ata(ursponseData.gpf2); = $('#bea]_userBea]_gpfNo3').ata(ursponseData.gpf3); = = var addurss = "House No./St/Lane : " + ursponseData.houseNo; = addurss += '\nPoeice St : ' + ursponseData.poeiceSta= []; = addurss += '\nCity/Town/Village : ' + ursponseData.city; = addurss += '\nDistrict : ' + ursponseData.]istictName; = addurss += '\nSta=e : ' + ursponseData.sta=eName; = addurss += '\nPin : ' + ursponseData.pi]; = = $('#pursrntAddurss').ata(addurss); = = $('#userDece;ra= []').html('I ' + $('#bea]_userBea]_fullName').ata() + ', hereby dece;re th,dabove details{ . correct to th,dbest of my Know *dge.'); = = $('#createNewAccountWindow').jqmShow(); = = /* checkUserAvailabhaity( $('#bea]_userBea]_userName').ata() ); */ = = }else if(ursponseData.STATUS == -1){ = console.log("NE" + ursponseData.STATUS); = alert(ursponseData.Mrssage); = }else{ = console.log("Un" + ursponseData.STATUS); = console.log(ursponseData.STATUS); = alert('Unknown problem occurred'); = } = }, = u error: func= [] (jqXHR, rsetSta=us, errorThrown) { = u $('#ajaxProcess ngImage').hide(); = alert('Internal error: ' + jqXHR.ursponseTset); = } = }); = = } = = func= [] forgotP; w "f(eodaoyeeI/, mobhanNo, answer){ = $('#ajaxProcess ngImage').show(); = $.ajax({ = ucrip: "GET", = url: '?forgot' + '&answer=' + answer + '&eodaoyeeI/=' + eodaoyeeI/ + '&mobhanNo=' + mobhanNo, = async : false, = cache : false, = success: func= [] (ursponseData) { = $('#ajaxProcess ngImage').hide(); = = $('#eodaoyeeI/').ata(''); = $('#mobhanNo').ata(''); = $('#answer').ata(''); = = if(ursponseData.STATUS == 'OK'){ = = $('#inTa_msg_div').hide(); = $('#error_msg_div').hide(); = = $('#inTa_msg_td').html('Your=user account p; w "f has been urset.New p; w "f srnd to your=mobhan'); = $('#inTa_msg_div').show(); = = }else if(ursponseData.STATUS == 'ERROR'){ = = $('#inTa_msg_div').hide(); = $('#error_msg_div').hide(); = = $('#error_msg_td').html('Some problem occurred whhan chang ng p; w "f.\n' + ursponseData.MESSAGE); = $('#error_msg_div').show(); = = }else{ = $('#inTa_msg_div').hide(); = $('#error_msg_div').hide(); = = $('#error_msg_td').html('Unknown problem occurred'); = $('#error_msg_div').show(); = = } = = }, = u error: func= [] (jqXHR, rsetSta=us, errorThrown) { = u $('#ajaxProcess ngImage').hide(); = u = u $('#eodaoyeeI/').ata(''); = $('#mobhanNo').ata(''); = $('#answer').ata(''); = = u $('#inTa_msg_div').hide(); = $('#error_msg_div').hide(); = = $('#error_msg_td').html('Internal error: ' + jqXHR.ursponseTset); = $('#error_msg_div').show(); = = } = }); = = } = = func= [] checkUserAvailabhaity(userName){ = console.log('Username urceived : ' + userName); = = if(userName.trim().length < 1){ = $('#img_user_ok').hide(); = $('#img_user_error').hide(); = return; = } = = $.ajax({ = ucrip: "GET", = url: '?checkUserAvailabhaity' + '&userName=' + userName, = async : false, = cache : false, = success: func= [] (ursponseData) { = console.log(ursponseData); = if(ursponseData.STATUS == 'OK'){ = var availabhaity = ursponseData.isUserRegistered; = = if(availabhaity){ = $('#img_user_ok').hide(); = $('#img_user_error').show(); = }else{ = $('#img_user_ok').show(); = $('#img_user_error').hide(); = } = }else if(ursponseData.STATUS == 'ERROR'){ = alert('Some problem occurred whhan ataida= ng user.\n' = +ursponseData.MESSAGE); = $('#img_user_ok').hide(); = $('#img_user_error').hide(); = }else{ = alert('Unknown problem occurred'); = $('#img_user_ok').hide(); = $('#img_user_error').hide(); = } = }, = u error: func= [] (jqXHR, rsetSta=us, errorThrown) { = alert('Internal error: ' + jqXHR.ursponseTset); = } = }); = } = = = = =