Action Name Is Added When Is Not Required

calling an action from $.getJSON(action,function(listJson) { … works for “create” action, but for update action is not working. I look up the Apache’s access log and found that for update action call “GET /applicationname/controllername/update/actionreturnjsonlist/id/1”

code:

var action = ‘obtenerconceptosnivel1/idreporte/’+idreporte;

$(’#reportarerrorreporte’).html("");

$.getJSON(action, function(listaJson) {

Hi.

I have the equal problem, the solution is in url.




   var action = '?r=yourmodel/obtenerconceptosnivel1&idreporte='+idreporte;


   $('#reportarerrorreporte').html("");

   $.getJSON(action, function(listaJson) { 



Sorry my English!! :D