spinning/loading image for ajax call
sky123Apr 11 2007 — edited Apr 24 2007Hi,
Is there any way to display a spinning/loading image (the usual one that you see on many Ajax Websites) before getting the result in the following ajax call?
Thanks.
Andy
<script type="text/javascript">
function getUserList() {
var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getUsers',0);
ajaxRequest.add('P2_LAST_NAME',html_GetElement('P2_LAST_NAME').value);
ajaxRequest.add('P2_FIRST_NAME',html_GetElement('P2_FIRST_NAME').value);
ajaxResult = ajaxRequest.get();
if (ajaxResult)
{html_GetElement('UserListDiv').innerHTML = ajaxResult}
else
{html_GetElement('UserListDiv').innerHTML = 'null'}
ajaxRequest = null;
}
</script>