Note that there are some explanatory texts on larger screens.

plurals
  1. POOpening a new window with reduced size in grails
    primarykey
    data
    text
    <p>I have a controller action named showcontacts which is called when a link is clicked.The action showcontacts calls a java method that fetches some contacts from web service,after accepting params as parameter.These all are working fine.Now i have to open a window of reduced size(like a popup) from this action as a new template.How can i do this?Plz help.what i tried is as follows:</p> <p>controller:customer</p> <p>action:</p> <pre><code>def showcontacts={ log.info(params.tdc+params.companyid+params.companytype) def contact=server.util.SOAPClientSAAJ.showContacts(params); render view:'showcontacts', model:[contact:contact] } </code></pre> <p>I tried like this in showcontacts.gsp:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;jQuery UI Dialog - Default functionality&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jqueryui.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="/resources/demos/style.css" /&gt; &lt;script&gt; $(function() { $( "#dialog" ).dialog(); }); &lt;/head&gt; &lt;body&gt; &lt;g:if test="${contact}"&gt; &lt;div id="dialog" title="Contacts"&gt; ${contact.firstName} &lt;/div&gt; &lt;/g:if&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Eventhough the new window is appearing its hiding the other window(not like a popup).</p> <p>OR simply stated my requirement is how to call window.Open in javascript from my view showcontacts???</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.
 

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