Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

spinning/loading image for ajax call

sky123Apr 11 2007 — edited Apr 24 2007
Hi,

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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2007
Added on Apr 11 2007
8 comments
967 views