global ajax-loading indicators

How I can insert an ajax-loading indicators (somewhere in the layout that is called in each page), and display it whenever an ajax request on.

Global setting for the whole website.

Thank you

By default Yii structure U can do what U want in:


this is file that will always be rendered.