There is something visceral to code a server and getting it to run. node.js is just that, an unassuming ferocity that draws developers in.
The Node beginner book – http://www.nodebeginner.org/, helps developers take the first baby steps.
This post is meant for people who have gone past [...]
I wanted to dynamically load a class at runtime and run a function specified in the argument in groovy.
Example ./run.sh Utilities.uptime
To get that to work,
Read in the argument from the command prompt String classFunctionName = args[0] logger.trace("classFunctionName – " + classFunctionName) Split the name of class and function //Split the name of [...]
The first step is to define a function in the controller you wish to invoke. For example, in my controller called RunnerController.groovy I defined the following
- RunnerController.groovy
def printIt = { for (String e in params['runnersList'].iterator()) { def runnerInstance = Runner.get(e) println runnerInstance.lastName + ", " + runnerInstance.firstName } redirect(action: "index", params:params) }
Next,- [...]
So how did I reach this conclusion. To replicate the issue
In Grails, prototype.js is needed for AJAX calls. You declare in HTML/HEAD <g:javascript library="prototype"></g:javascript> Then create your remote AJAX request <g:submitToRemote id="buttonSubmit" name="buttonSubmit" controller="test" action="echoIt" value="GO!" before="hide()" onComplete="show()"></g:submitToRemote> It all works! I wanted an autocomplete JQuery, so I downloaded from [...]

