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!

Making my Javascript wait for Partial Page refresh to finish

646662Aug 11 2010 — edited Aug 24 2010
Hi All,

I'm using APEX 3.1 and I have a report that is updated by an AJAX call and then has a partial page refresh executed so that the changes are reflected without reloading the page.

I have this script in the header of the report to that is called by the a function after the ajax is executed:

<script type="text/javascript">
function reload_report(){
pId = '#REGION_ID#';
$a_report(pId.substring(1),'1','15');
}
</script>

My problem occurs when a delay causes the report refesh to take a little bit of time. Users are making other changes to the report before the refresh completes and sometimes making changes that would not be possible after the refresh, thereby causing an error when the refresh completes.

Does anyone know of a way I can make a javascript event wait and then fire when the partial refresh finishes? I'm intending to implement JQuery BlockUI to prevent action while the report refreshes but because the refresh is asynchronous the unblock process fires without waiting for the refresh.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2010
Added on Aug 11 2010
2 comments
1,138 views