Geeks With Blogs

News

Dave Noderer's Blog South Florida does .NET! November 2014 Entries
Javascript Loading gif and logic
When using ajax to load data from the server it is useful to display a “loading” animation to let the user know that something is happening. These bits of code and this gif spinner will do the trick! you can find a number of alternative spinners or make your own! Position the following div wherever you want it on your page. Then in javascript turn it on when loading the page and when re-fetching data (say after filtering): $("#loading").css({ 'visibility': 'visible' }); Then turn it off on either ......

Posted On Monday, November 17, 2014 9:11 PM

Copyright © Dave Noderer | Powered by: GeeksWithBlogs.net | Join free