I need to get the DOM string of a template. However, a highCharts chart is added to the template after it is loaded. When I use g.render, I do not get the chart in the resultant string. Basically, the javascript doesn’t run. Can anyone help?
Share
If some kind of javascript has to run on the client, before the server is doing something else, you have to use ajax to make a callback from the client. See the grails ajax docs for code examples.