Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\nuevo\htdocs\boletinlegal\registro\assets\js\ drwxrwxrwx |
Viewing file: js.js (1.55 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | jQuery(document).ready(function(){ var Form = { name: 'contactForm', cssClass: {'warning' : 'warning','error' : 'error', 'success' : 'success'}, id: {'error' : 'error', 'success': 'success'}, errorPrefix: 'Error', action: function(){return $('#' + this.name).attr('action')}, data: function(){ return $('#' + this.name).serialize(); }, hideBox: function(el){ $(el).slideUp('slow'); }, showBox: function(el){ $(el).slideDown('slow'); }, invalids: null, setInvalids: function(invalid){ this.invalids = invalid } } // Boxes to hide var cssBoxes = '.' + Form.cssClass['warning'] + ',.' + Form.cssClass['error'] + ',.' + Form.cssClass['success']; // hide all boxes if some exists $('#ajax_loader').ajaxStart(function(){$('#send').hide();$(this).show() }) $('#ajax_loader').ajaxComplete(function(){$('#send').show();$(this).hide() }) $('#' + Form.name).submit(function(){ Form.hideBox(cssBoxes); // Ajax request $.post(Form.action(), Form.data(), function(data){ var $return = eval('(' + data + ')'); if($return === true){ Form.showBox('#' + Form.id['success']); }else if($return === false){ Form.showBox('#' + Form.id['error']); } else{ for(var i in $return){ Form.showBox('#' + $return[i] + Form.errorPrefix); } } }); return false; }) }) |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |