This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

render JSON in grails

 
Maharaj thak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have an index.gsp page where I am trying to implement jquery autocomplete.My action is called Search which is in SearchController.If I do
render someObject as JSON does the json data go back to index.gsp or do I have to create search.gsp.
Any help would be greatl appreciated.

Regards
Mauji Thak

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It goes back to whatever made the request: if it's an Ajax request it'll go back to the Ajax request object and its handlers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic