Grails Resources Plugin and AJAX loaded javascript

前端 未结 3 760
梦如初夏
梦如初夏 2021-02-05 10:52

I added the resources plug-in in a grails 1.3.7 application and everything works fine except javascript that is loaded asynchronously.

So if I have a template that conta

3条回答
  •  梦如初夏
    2021-02-05 11:25

    A better approach would be to have a dedicated layout for your AJAX responses:

    
    
    

    If you're using Grails 2.0, you can specify the layout in the render method (render template: "...", layout: "ajax"). Otherwise, use layout by convention.

提交回复
热议问题