查詢資料時候等待效果
阿新 • • 發佈:2019-01-27
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(); }