title: How to use onLoading event in grails remoteFunction
body: <p>I am doing a web application in grails.In that I am using remoteFunction in gsp page.It is working now.In that in "onloading" event I want to call "showSpinner()" javascript function.My sample gsp code is :</p>
  
  <pre><code>&lt;div class="menuButton" onclick="${remoteFunction(action: 'index', controller: 'file',     update: [success: 'ajax', failure: 'ajax'])}"&gt;
        &lt;label class="menu"&gt;File upload&lt;/label&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Can anyone provide help on this.</p>