aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Rolling Spinner using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Rolling Spinner using javascript " Watch "Rolling Spinner using javascript " New topic
Author

Rolling Spinner using javascript

Aggarwal Arpit
Ranch Hand

Joined: Mar 04, 2012
Posts: 86
Hi,

I have a requirement that rolling spinner should come when user click on a save button to show user that processing is going on.
I also have a spinner image.How can I implement it using javascript.

Thanks in Advance for your help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

What is a "rolling spinner"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You mean a gif image saying something is running?
Aggarwal Arpit
Ranch Hand

Joined: Mar 04, 2012
Posts: 86
Hi Eric,
Sorry for late reply
I am talking about same thing.....a gif image saying something is running.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Do you mean during an Ajax request? If so, and you are using jQuery as I saw in another post, you can capture Ajax start and end events to cause the "spinner" image to be shown and hidden. Be sure that 's it is initially hidden using CSS.
Aggarwal Arpit
Ranch Hand

Joined: Mar 04, 2012
Posts: 86
Hi Bear,

Can you provide me with some piece of code which I can refer and implement this?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

You know that's not the way things work here. You give the code a try and we'll help you with it.

Do you know how to bind events in jQuery? Do you know how to initiate an Ajax request in jQuery. If not, that's where to start. If so, then give some code a try and post back with it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rolling Spinner using javascript