title: pass parameter in g:remoteLink as result of javascript function
body: <p>in .gsp file i have javaScript function </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   function getCurrentItemNumber(){
          return document.getElementById('item_itemNumber').innerHTML.substr(6);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>and in g:remoteLink I like to pass param using that function</p>
  
  <p>something like following ...</p>
  
  <pre><code>&lt;g:remoteLink id="remove_item_button" action="removeItem" update="itemBox"
              params="[itemNumber:getCurrentItemNumber()]"&gt;- Remove Item&lt;/g:remoteLink&gt;
  </code></pre>
  
  <p>How can I achieve that?</p>