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
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
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
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
4 matches
Mail list logo