Manazir Ahsan
Manazir Ahsan

Reputation: 113

Issue regarding Ajax in Grails

I am new to Grails. I tried several sites such as this one to practice grails-view/ajax. But g:remoteLink is not working properly. When I click on the g:remoteLink on the .gsp page it render the new page instead of updating a selective portion of the current page.

Can anybody give me any solution? Thanks in advance.

JDK version : 1.7 update 45

Grails version : 2.2.0

Upvotes: 1

Views: 57

Answers (1)

Arafat Rahman PAppu
Arafat Rahman PAppu

Reputation: 181

@ManazirAhsan

When you used g:remoteLink its working as a method/function calling in a controller. So in the corresponding controller if you add a page to view then it will do accordingly.

So you can solve your issue by rendering template to a view page using "div" to update corresnponding portion.

you can you use render instead of g:remoteLink or render in the action g:remoteLink is passing.

Hope this will work. Or you can comment any more issue. :)

Upvotes: 1

Related Questions