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!

Ajax loader while classic report is being refreshed ?

Yann39Feb 7 2012 — edited Aug 25 2012
Hi,

Apex 4.1, Oracle 11g.

I have some classic reports that can be refreshed using something like :
$a_report(l_report_id,'1','15','15');
The problem is that the refresh time can be long (from 0 to 6s), so I want to show an ajax loader instead of the report, while the report is being refreshed.

I tried :
$('#my_report_id').hide();
$('div.my_report_container').append('<div id="ajax_report_loader"><img alt="" src="'+IMAGES_PATH+'ajax-loader.gif" style="height:28px;width:28px;" /> loading report...</div>');
$a_report(l_report_id,'1','15','15');
$('#img_ajax_report_loader').remove();
$('#my_report_id').show();
$('#my_report_id').hide();
$('div.my_report_container').append('<div id="ajax_report_loader"><img alt="" src="'+IMAGES_PATH+'ajax-loader.gif" style="height:28px;width:28px;" /> loading report...</div>');
$a_report(l_report_id,'1','15','15');

$('#my_report_id').load(function() {
	$('#img_ajax_report_loader').remove();
	$('#my_report_id').show();
});
Nothing worked.

Is there any simple way to do that ?

Thank you.

Yann.
This post has been answered by Kiran Pawar on Feb 9 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2012
Added on Feb 7 2012
7 comments
2,122 views