jquery processing page pop-up layer query data wait operation instance _jquery

Source: Internet
Author: User

This example describes the jquery processing page pop-up query data waiting operation. Share to everyone for your reference. The implementation methods are as follows:

$ (document). Ready (function () { 
  layer.load (0);
Initialize the load
//optional range (0-9) 0 to return the results after the result is closed, 1-9 for the automatic shutdown time (s) 
});

Set the style to turn off waiting when the query result set returns

function Init_page_pro (sdate, pro) {
$.post ("Detail.key", {
  ' Pro ': Pro,
  ' sdate ': sdate
}, function ( result, resultstate} {
  if (resultstate = = "Success") {
 var Resultjson = eval (result);
 alert (result);
 Layer.closeall ()//Close all load
  }
});

Note: Although only call the two methods to achieve the wait effect, but are all cattle encapsulation good, the need for source files, specific needs to my resources to download to use, and then put the appropriate path to the project can be

The final effect is shown in the following illustration:

I hope this article will help you with your jquery programming.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.