My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

The plugin uses groovy syntax to generate javascript code in Grails controllers in response to AJAX requests.

//put this at the top
import grails.converters.Javascript

render( {
   jQuery("#status").hide();
   jQuery("#main").html( g.render( template:"list", model:[list:list]) )
} as Javascript)

will render as

   jQuery("#status").hide();
   jQuery("#main").html( "...rendered template content..." )

Installation

grails install-plugin javascript-converter

Manual

Can be downloaded from downloads section. Here is a direct link http://grails-javascript.googlecode.com/files/manual-0.2.zip

Demo Application

Can be downloaded from downloads section. Here is a direct link http://grails-javascript.googlecode.com/files/javascript-demo-0.2.zip

Powered by Google Project Hosting