“Please Wait” message using jQuery or AJAX?

前端 未结 3 1688
情深已故
情深已故 2021-02-10 05:31

I am creating an enterprise web template to be used for development of all our web applications. Many of our existing applications take a while to load because of the amount of

相关标签:
3条回答
  • 2021-02-10 05:47

    If you're using jquery, just use ajaxStart / ajaxStop.

    0 讨论(0)
  • 2021-02-10 06:05

    With the UpdatePanel, there is an UpdatePanelProgress control to display to the user a progress status message. With JQuery, you can display an element with the please wait message on button click, and attach a generic handler to the ajaxComplete, this callback fires when the AJAX request completes and then you can hide it.

    HTH.

    0 讨论(0)
  • 2021-02-10 06:09

    Definitely #2. Adding an UpdatePanel is a whole can of worms, and if you're not using them already on a given page, adds a lot of overhead.

    The code involved in using jQuery to do this is trivial. There's a nice little plugin called blockui that can be used to render an effect and disable all controls on an area. It's not too hard to do this without the plugin either, but why reinvent?

    0 讨论(0)
提交回复
热议问题