title: javascript in grails paginate
body: <p>can we call javascript function from g:paginate tag . <br/>
  I need to call a javascript function when clicked on next page/number .<br/></p>
  
  <p>I'm using like this but no luck :<br/>
  g:paginate next="Forward" prev="Back" max="100" maxsteps="15" controller="Links" <br/>action="list" total="${Links.count()}" onclick="return show_waiting();"/><br/></p>
  
  <p><br/>
  function show_waiting(){<br/>
  alert('11111111111');<br/>
  return true;<br/>
  }<br/></p>
  
  <p>This is not working .
  Can any one help me on this ?</p>
  
  <p>thanks.</p>