Correct approach to show loading message

Hello,
I have a function which load data trough an asynchronous ajax call and it initialize some component. Seeing that the data are quite big I need to show a loading message while the data are downloading and the components are built. I would like to know which is the correct approach to realize that. At the moment I’m creating a popup before the ajax call and at the end of the ajax call i close the popup. Is this the correct approach?

Thanks
Danilo

You can use something like

dhx.extend($$(‘componentId’), dhx.ui.overlay);

where componentid - top level view
and later

$$(‘componentId’).showOverlay();

$$(‘componentId’).hideOverlay();

docs.dhtmlx.com/touch/doku.php?i … g_screen&s[]=overlay