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

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -