title: How to show flash.message in Grails after AJAX call
body: <p>I want to show some flash message after completion of AJAX call. I am doing like this ..</p>
  
  <p>Controller Action --</p>
  
  <pre><code>def subscribe()
  {
      def subscribe = new Subscriber()
      subscribe.email = params.subscribe
      if (subscribe.save())
      {
          flash.message = "Thanks for your subscribtion"
      }
  
  }
  </code></pre>
  
  <p>View Part --</p>
  
  <pre><code>Subscribe :
      &lt;g:formRemote onSuccess="document.getElementById('subscribeField').value='';" url="[controller: 'TekEvent', action: 'subscribe']" update="confirm" name="updateForm"&gt;
         &lt;g:textField name="subscribe" placeholder="Enter your Email" id="subscribeField" /&gt;
         &lt;g:submitButton name="Submit" /&gt;
      &lt;/g:formRemote &gt;
      &lt;div id="confirm"&gt;
         &lt;g:if test="${flash.message}"&gt;
             &lt;div class="message" style="display: block"&gt;${flash.message}&lt;/div&gt;
         &lt;/g:if&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>My AJAX working fine but it is not showing me flash.message. After refresh page it displaying message. How to solve it ?</p>