I am developing a web application in grails that uses a lot of ajax. I need to show a spinner.gif image while processing an ajax request. My gsp code example
<div id="ajax-area">
<g:remoteLink action="list" controller="file" update="ajax-area">
view files
</g:remoteLink>
</div>
In the above code, if we click on the link to the view files, it will update the ajax-area div.
Can someone show me how to update the ajax region of spinner.gif when loading ajax.
thanks
source
share