[web2py] Re: calling a fuction from javascript (jquery)

2010-06-01 Thread pk
super thanks a lot ;) On 1 Jun., 20:48, Candid wrote: > For your example it's easier to use $.post: > > $.post("your_url", {naotext: naotext}) > > In NaoSpeak function on the server you can access naotext as > request.vars.naotext > > On Jun 1, 12:17 pm, pk wrote: > > > > > thanks, > > have you

[web2py] Re: calling a fuction from javascript (jquery)

2010-06-01 Thread Candid
For your example it's easier to use $.post: $.post("your_url", {naotext: naotext}) In NaoSpeak function on the server you can access naotext as request.vars.naotext On Jun 1, 12:17 pm, pk wrote: > thanks, > have you an example? > > On 1 Jun., 18:11, Thadeus Burgess wrote: > > > > > Add the var

[web2py] Re: calling a fuction from javascript (jquery)

2010-06-01 Thread pk
thanks, have you an example? On 1 Jun., 18:11, Thadeus Burgess wrote: > Add the variable to the data declaration of the jquery.ajax method. > This will be passed along as a POST or GET and then your function just > looks at request.vars.naotext. > > -- > Thadeus > > > > On Tue, Jun 1, 2010 at 10