Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to make a wait rotating icon to appear while my rest function is being evaluated

CelesteCS January 31, 2015

Hello,

I'm working on a property dialog extension, when on a button press some REST function is called. For the time while this function is performed, I need the page contents to be grayed out and a standard spinner icon is shown.

How to do it?

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2015

Agree with Norman. Just to add on to it, AUI provides a waiting icon. You can do something like:

Please wait while the page is loading <span class="aui-icon aui-icon-wait">Loading...</span>

If you want a real progress bar, you will have to explore some jquery plugins.

1 vote
Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2015

This answer has very little to do with Atlassian products other than you are making an ajax call to Atlassian products.  Before you make the rest call you put a div over the complete body and use css to make it translucent.   The waiting icon can be a gif you position on the translucent div.   When the rest callback is done and you process whatever data that is returned, you then remove or hide the div and gif.

There are many examples you can find using your favorite search engine.

The rest call should be done asynchronously verses synchronously.

0 votes
gfernndezchas April 14, 2015

This is how to show a spinner.

https://docs.atlassian.com/aui/5.5.1/docs/spinner.html

Hope it helps.

Cheers.

0 votes
CelesteCS February 2, 2015

Hello,

Thank you for your answers! Based on it I found the following article: https://docs.atlassian.com/aui/5.5.1/docs/icons.html.

But how to show it dynamically from JavaScript?

Thanks!

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events