How can I create a “Please Wait, Loading…” animation using jQuery?

后端 未结 17 2014
长情又很酷
长情又很酷 2020-11-22 00:07

I would like to place a \"please wait, loading\" spinning circle animation on my site. How should I accomplish this using jQuery?

17条回答
  •  忘掉有多难
    2020-11-22 00:35

    Note that when using ASP.Net MVC, with using (Ajax.BeginForm(..., setting the ajaxStart will not work.

    Use the AjaxOptions to overcome this issue:

    (Ajax.BeginForm("ActionName", new AjaxOptions { OnBegin = "uiOfProccessingAjaxAction", OnComplete = "uiOfProccessingAjaxActionComplete" }))
    

提交回复
热议问题