what if I don't want to return anything in jquery ajax call? -


i calling ajax function

$.ajax({      url: $.grails.createlink('class', 'action'),      data: {id: id1},      async: false }); 

so calling grails method here

def action = {  }  

now @ end of action method if don't return js error 'sorry, error occurred' explicitly specified 'render ""' @ end of action method.

is there way avoid render?

if don't return anything, grails try , render view grails-app/views/controller/action.gsp

i expect doesn't exist, you'll 404

you can add empty view, render blank template, or doing (the shortest option)


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -