Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have implemented the same mechanism for my application, and I am using the jQuery plugin 'smartmodal' (used by the Nimble plugin originally). See <a href="http://www.oneblackbear.com/projects/jquery-plugin-smart-modal" rel="nofollow noreferrer">here</a></p> <p>You simply have to redirect the request in the controller validation code to a GSP page containing the following code:</p> <pre><code>&lt;script type="text/javascript" src="${resource(file: 'jquery-1.3.2.js')}"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="${resource(file:'jquery.smartmodal.js')}"&gt;&lt;/script&gt; &lt;LINK rel="stylesheet" href="./css/smartmodal.css"&gt; ... &lt;body&gt; ... &lt;g:javascript&gt; $(function() { $("#msg").hide(); $("#msg").modal({hide_on_overlay_click:false}); $("#msg").modal_show();}); &lt;/g:javascript&gt; &lt;div id="msg"&gt; My feedback message is here &lt;/div&gt; &lt;g:link controller="..." action="..."&gt;Close&lt;/g:link&gt; </code></pre> <p>I hope it helps,</p> <p>Fabien</p> <p><strong>EDIT</strong>: An extract of the <code>smartmodal.css</code> file that will render the 'modal effect' is:</p> <pre><code>#modal_content { display: none; position: fixed; left: 50%; padding: 0px; top: 10%; background: #FFF; border: 0px solid #d2d2d2; width: 400px; margin-left: -200px; text-align: left; } #modal_overlay { background-color: #000; } </code></pre> <p>However if you want the complete file, it is available inside the great <a href="http://intient.com/opensource/nimble" rel="nofollow noreferrer">Nimble</a> grails plugin</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload