Ticket #245 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Add spinner or 'please wait' when waiting for ajax calls in create study wizard

Reported by: robert@… Owned by: robert@…
Priority: trivial Milestone: Could have
Component: Study create/edit wizard Version:
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

When the create study wizard loads some page using ajax, the user is left behind waiting, but doesn't know what happens. For example, when you select a study template in the first step, it takes 1 or 2 seconds before the fields are shown. The same happens when clicking next.

It would be very handy to see that something happens in these cases(that's why the hourglass mouse pointer exists in windows). This can be done by showing e.g. a spinner, or a message 'please wait...'

Change History

Changed 3 years ago by work@…

  • priority changed from major to trivial
  • milestone set to 0.8

Yeah, I have the same thought as you. However, the reason I did not yet build this is because it does not always take 1 to 2 seconds (most often it does not). If it takes 0.5 seconds a spinner is extremely annoying. You see a quick spinner that dissapears before you know what it actually was...

So, this could be useful if you could somehow estimate how long something would take... Perhaps we could measure the ajax duration and show a spinner if it's taking more than 0.5 seconds or something...

food for thought, lowering priority and assiging to 0.8

Changed 3 years ago by robert@…

Unfortunately on this computer it does take 1 or 2 seconds most of the time, sometimes even more. The changes you made yesterday have improved those times a bit. Still I think it would be nice to see something happening when you click a link or change the template. Now, when I click the 'next' link, really nothing happens for a second. I don't get any response. I think a spinner image doesn't have to be annoying. You might show only a small spinner next to the button, or maybe only change the mouse pointer.

Changed 3 years ago by work@…

  • owner changed from work@… to robert@…
  • status changed from new to assigned

Added generic spinner / please wait support in ajaxflow plugin 0.1.10 and to the studyWizard in r1319

please test...

Changed 3 years ago by robert@…

  • owner changed from robert@… to work@…

Looks great. Now I get some response when clicking a button. Is it possible to have the 'please wait' overlay the (old) page? When the please wait spinner shows up, the page is changed (e.g. scrollbars and fields disappear and the footer moves up), and when the real page is loaded, it happens the other way around. It's quite jumpy.

Changed 3 years ago by work@…

yeah, i was not sure about that either... I'll have a look at that in january as now my hollidays have started ;)

Changed 3 years ago by work@…

  • owner changed from work@… to robert@…

improved 'please wait' behaviour in r1333 and ajaxflow 0.1.12, please retest...

Changed 3 years ago by robert@…

  • status changed from assigned to closed
  • resolution set to fixed

It's better now

Note: See TracTickets for help on using tickets.