function waitSubmit(){ try{ $.blockUI({ //fadeIn: 700, //渐入式显示 fadeOut: 700, //渐出式消失 timeout: 20000, //2 秒后消失 message: '<img width="32px" height="32px" src="/CNAS_LAS/images/load.gif" /><br/> 数据处理中,请稍候', css: { border: '0', backgroundColor: '#FFFFFF' }, overlayCSS: { backgroundColor: '#FFFFFF' } }); }catch(e){} }
下面为jsp提交时候的js
var doSave = function(){ $('#transitionPersonName').val($('#transitionPerson_userId option:selected').text()); $("#nextText").val($('#nextTransaction1 option:selected').text()); mainForm.action = "${pageContext.request.contextPath}/approval/doSave.action?flag=${param.flag}"; waitSubmit(); mainForm.submit(); }