开发者

Simple Modal while processing data

I want to use Simple Modal to present a div while my rails app is processing some data on create. I want the page开发者_如何学Python to then disappear when the show page should load. Right now, I'm presenting the modal view on clicking submit, but it seems to freeze after that. Any suggestions on how to show an activity indicator while processing data?


When you say 'freeze' does that mean you're not getting a response from your XHR request?

Whether you're using a homebrew xhr setup or something like jquery you should be able to detect success/failure and handle your modal status accordingly.

Side Note: This is handy utility for adding a nice spinner animation to your modal http://fgnass.github.com/spin.js/.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜