我想在页面加载时使用调用动作在AMX页面中调用Java脚本函数,但它引发异常。 我正在使用以下代码。 我的js文件包含下面的代码下面的代码如何在AMX页面加载时调用JavaScript函数?
(function(){
if (!window.application) window.application = {};
DayView.gotoFirstOperation =function(){
var element =document.getElementById('box');
alert('Method exeuted');
if('null' != element){
element.scrollIntoView();
}
}; })();
我在调用操作方法我打电话js函数。
AdfmfContainerUtilities.invokeContainerJavaScriptFunction(AdfmfJavaUtilities.getFeatureName(), "DayView.gotoFirstOperation", new Object[]{});
我得到以下异常invokeContainerUtilitiesMethod 'invokeContainerJavaScriptFunction' encountered an error[ERROR[oracle.adfmf.framework.exception.AdfException]-JS Response returned a nil response.].
有没有其他办法,我可以呼吁AMX页面加载JS的功能?