我在从我的函数中获取所需的功能时遇到了一些麻烦......基本上,我正在对 AJAX 函数进行两次调用(由 Oracle APEX 提供,所以我无法更改这些)但他们正在采取尽管。我想在动作进行时显示标准的 AJAXy 旋转 gif,但我运气不佳。这是我到目前为止所拥有的:
function paginate(reportIDs, startRecord)
{
//block access to the UI and show a "please wait" message
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
opacity: .5,
color: '#fff'
} });
//make the two AJAX calls to the APEX provided function
for(var i = 0;i<reportIDs.length;i++)
{
$a_report(reportIDs[i], startRecord, ITEMS_PER_PAGE, ITEMS_PER_PAGE);
}
//clean up some APEX garbage on the page
formatPage();
//make the "please wait" message go away
$.unblockUI;
}
我目前遇到的具体问题是 UI 的阻塞似乎只有在 AJAX 调用完成后才会发生。然后它永远不会解锁......有什么想法吗?