Hi,

There can be a long time between the moment the user selects a region and the moment the sub-regions dropdown appears. Enough time for the user to not know that a second dropdown is on its way. The user actually clicks on the Search button before the dropdown appears.

We need to tell the user something is loading so that he waits a little.

How could we easily add a throbber icon when the dropdown is loading ?

Thanks

Comments

nicolas bouteille’s picture

Here is a suggestion for how to make SHS more flexible in next releases:

in function shsElementCreate do not hide newly created element
instead add a class 'loading'

in function getTermChildren remove the fadeIn() call and instead remove the class 'loading'

now in css you can choose to display:none for select.shs.loading
and other people like me can override css to give like in my case a throbber background !

What do you think ?

stborchert’s picture

Status: Active » Postponed (maintainer needs more info)

Uhm, how many items does your term list have? We are using the module with term hierarchies where each level has >100 items and its fast. Using the module High-performance JavaScript callback handler makes it even faster (load takes less than 100ms) so you could hardly recognize a new element is loaded.

omdb’s picture

Thanks Nicolas - that worked great!

stborchert’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (fixed)