title: How to call Javascript function on AMX page load?
body: <p>I'm trying to call a Javascript function on page load using invoke action in AMX page but its throwing exception.
  I'm using following code.
  My js file contains following code:</p>
  <pre><code>(function(){
  if (!window.application) window.application = {};
  DayView.gotoFirstOperation =function(){
      var element =document.getElementById('box');
      alert('Method exeuted');
      if( 'null' != element){
      element.scrollIntoView();
      }
  }; })();
  </code></pre>
  <p>My  invoke action method I'm calling js function in the following code:</p>
  <p><code>AdfmfContainerUtilities.invokeContainerJavaScriptFunction(AdfmfJavaUtilities.getFeatureName(), &quot;DayView.gotoFirstOperation&quot;, new Object[]{}); </code></p>
  <p>I'm getting following exception:</p>
  <blockquote>
  <p>invokeContainerUtilitiesMethod 'invokeContainerJavaScriptFunction' encountered an error[ERROR[oracle.adfmf.framework.exception.AdfException]-JS Response returned a nil response.].</p>
  </blockquote>
  <p>Is there any other way I can call the js function on AMX page load?</p>