Added a running prompt for jquery ajax requests and added a jqueryajax request.
Add the showMask () method call in jquery source code:
If (xhrSupported ){
JQuery. ajaxTransport (function (options ){
// Cross domain only allowed if supported through XMLHttpRequest
If (! Options. crossDomain | support. cors ){
Var callback;
Return {
Send: function (headers, complete ){
ShowMask ();
......
Add hideMask () method call in jquery source code:
// Callback for when everything is done
Function done (status, nativeStatusText, responses, headers ){
// Alert (1 );
HideMask ();
Var isSuccess, success, error, response, modified,
StatusText = nativeStatusText;
// Called once
If (state = 2 ){
Return;
}
......
// Call the easyui Effect
// Load
Function showMask (){
$ ("<Div class = \" datagrid-mask \ "> </div>" ).css ({display: "block", width: "100%", height: $ (window ). height ()}). appendTo ("body ");
$ ("<Div class = \" datagrid-mask-msg \ "> </div>" Running .html ("running, please wait... "). AppendTo ("body" ).css ({display: "block", left: ($ (document. body ). outerWidth (true)-190)/2, top: ($ (window ). height ()-45)/2 });
}
// Hidden Load
Function hideMask (){
$ (". Datagrid-mask"). remove ();
$ (". Datagrid-mask-msg"). remove ();
}
Reference file: