rendered paste body<script type="text/javascript">
$(function() {
$.extend($.blockUI.defaults.pageMessageCSS, { color: '#999999', backgroundColor: '#3B3C3E' });
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor: 'black', opacity: '0.5' });
// .css({position: "relative", top: "1em", left: "25em"})
$().ajaxStart(function() {
// haserrors.show();
$.blockUI( '<h1><img src="http://crazilla.linuxlab/images/icons/loading/loading1.gif" /><BR> Just a moment...</h1>' );
}).ajaxStop(function() {
// loader.hide();
$.unblockUI();
});
$().ajaxError(function(a, b, e) {
throw e;
});
$.validator.setDefaults({
debug: false
});
var v = $("#MyForm1").validate({
/////// begin rules //////////////////////////////////////////
rules: {
MyForm1nicknameInputfield: { minLength: 12, required: true, maxLength: 45
}}
/////////// end rules ///////////////////
,
///////// begin error divs container ///////////////
errorPlacement: function(error, element) {
if(element.attr('id') == "MyForm1nicknameInputfield") { $("#MyForm1nicknameInputfieldErrorDIV").html("%","fd","faaaa"); } else {}}, focusInvalid: "false",
event: "keyup",
submitHandler: function(form) {
$(form).ajaxSubmit({
dataType: "json",
after: function(result) {
if(result.status == 0) {
v.showErrors(result.data);
} if(result.status == 1) { alert("OK"); }
}
});
}
});
});
</script>