jQuery for Grails Developers
summary
Builds a small Grails "tasks" app and shows concrete code: uses formRemote + jQuery to post a create, controller renders a JSON payload containing the single-task HTML produced by render template, client inserts that HTML into the table at the correct alphabetical position using a server-returned previousTaskId, then highlights it with jQuery UI effects. Demonstrates stepwise debugging in the browser console and shows Grails/Spock tests (including mockForConstraintsTests) to validate constraints and controller behavior; the approach works end-to-end.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:35Example
- 5:23asynchronous calls
- 9:50displaytask template
- 12:54add jQuery
- 13:58slow down
- 16:40farm remote
- 20:56console
- 22:39selector
- 23:12selectors
- 23:44classes
- 24:18Dont do this
- 26:12Get the data
- 27:48Where to put the row
- 34:15Row
- 41:59Feedback
- 53:09Lessons
related talks
01h 09mRestful Grails 3
56mUsing Jquery with Ruby Web Frameworks
36mGrow Up With Grunt
01h 07mModern Frontend Engineering
01h 21mGrails 3.x Inside and Out
21m6 degrees of JavaScript on Rails
50mHTML5, Angular.js, Groovy, Java & MongoDB – What Could Possibly Go Wrong?
51mGrunt JavaScript Automation for the Lazy Developer
