[web2py] Re: Problem passing a json object to controller

2019-11-27 Thread Patito Feo
Paco, thanks for your help! Y Olé El miércoles, 20 de noviembre de 2019, 18:32:47 (UTC-5), Paco Bernal escribió: > > H again :) > > I think the problem is this > > Instead of > > request.vars.items[json1] >> > > use this > > request.vars['items[json1]'] >> > > because the var is

[web2py] Re: Problem passing a json object to controller

2019-11-20 Thread Paco Bernal
H again :) I think the problem is this Instead of request.vars.items[json1] > use this request.vars['items[json1]'] > because the var is 'items[json1]' requests.vars.items[json1] will look for the key 'json1' in the dict var items and there is no items var only a 'items[json1]' var

[web2py] Re: Problem passing a json object to controller

2019-11-20 Thread Patito Feo
Paco here is the reponse: 1. {vars: {…}, respuesta: "noexiste"} 1. respuesta: "noexiste" 2. vars: {tarea: "solicitudguardar", items[json1]: "[1,2,3]"} 3. __proto__: Object Thanks in advance, El miércoles, 20 de noviembre de 2019, 16:39:22 (UTC-5), Paco Bernal

[web2py] Re: Problem passing a json object to controller

2019-11-20 Thread Paco Bernal
Hi, Try this, write down at the begin of the controller print request.vars > you will see how the controller receives the information and then you will know if it's a js problem or a server side problem. with your code what the controller receives is