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.