title: Grails formRemote: why does it always redirect?
body: <p>I am trying to use the tag g:formRemote in grails. </p>
  
  <p><strong>In head definition:</strong></p>
  
  <pre><code> &lt;g:javascript library="prototype" /&gt;
  </code></pre>
  
  <p><strong>view:</strong></p>
  
  <pre><code>&lt;g:formRemote name="something" update="remoteDocsBlock"
                        url="[ controller: 'document',
                         action: 'search']"&gt;
  
        search: &lt;input name="searchstring" type="text"&gt;&lt;/input&gt;
  
        &lt;g:actionSubmit value="Search" action="search" /&gt;
  
        &lt;g:render template="/document/remoteSearchList" model="[docs:docs]" /&gt;
  
  &lt;/g:formRemote&gt;
  
  &lt;div id="remoteDocsBlock"&gt;this div is updated with the result...&lt;/div&gt;
  </code></pre>
  
  <p><strong>in my controller</strong></p>
  
  <pre><code>def search = {
  .....
  render (template:'remoteSearchList', model: [docs:docs])
  
  }
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>What happens: a call is made to the controller, and the entire page is replaced with the result of the controller - the template _remoteSearchList. A diffrent ajax call on the page does work. I have no idea why grails behaves like that.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I have removed the "__" problem. The comment solved this question.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I have isolated the Problem: JQuery. I am also using JQuery on the site. If it is removed, the ajax call works... need to find a way, to make both work.</p>
  
  <pre><code>&lt;g:javascript library="jquery-1.4.4.min" /&gt;
  &lt;g:javascript library="jquery-ui-1.8.7.custom.min" /&gt;
  &lt;g:javascript library="jquery-server-extentions" /&gt;
  </code></pre>