Re: [web2py] Re: Get return value from controller function via ajax

2016-01-21 Thread Ian W. Scott
Ah, thanks Anthony. I didn't realize that the third argument in the ajax() function was that flexible. That helps. Ian On Wed, Jan 20, 2016 at 4:45 PM, Anthony wrote: > Additionally, if you still want to use the ajax() function, the third > argument can be ":eval", in

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
Simone, Since simplejson have be exit, and standard lib json it reputed multifold time slower what are you suggesting as a remedy? Richard On Wed, Jan 20, 2016 at 2:50 PM, Niphlod wrote: > from gluon.serializers import json > > def uh(): > return json(blablabla) > > >

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Niphlod
I suggest a good pair of goggles . https://github.com/web2py/web2py/tree/R-2.13.4/gluon/contrib/simplejson On Wednesday, January 20, 2016 at 10:05:17 PM UTC+1, Richard wrote: > > To my knowlege simplejson contrib was there because of standard json lib > was too slow... > > Richard > > On

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
https://groups.google.com/d/msg/web2py-developers/2U-4hnwjc60/9LvGVn_P2VYJ You are right I am having it... I guess I shouldn't believe everything what I read... :) Thanks to clarify that... I should check my code since the issue I was having get solved by another concurrent change which may was

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Niphlod
I really don't know what you meant (ontopic or offtopic) On Wednesday, January 20, 2016 at 9:49:58 PM UTC+1, Richard wrote: > > again what, off topic, ever!! > > :) > > Richard > > On Wed, Jan 20, 2016 at 3:43 PM, Niphlod > wrote: > >> ehm.. what again ? >> >> On

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
I mean, before in gluon/contrib there were simplejson, but I notice it had been removed in 2.10.x if I remember because it was not py3 compliant... I discover it hadly when my production app shown some strange behavior in some search field or autocomplete field where I was using it... I did't

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
Yes always better to parse it... On Wed, Jan 20, 2016 at 4:20 PM, Ian W. Scott wrote: > Thanks. So to clarify, if I serialize the return value as json in the > controller, then I can use it in javascript. It looks like I still have to > parse the json on the javascript end

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Niphlod
ehm.. what again ? On Wednesday, January 20, 2016 at 9:36:01 PM UTC+1, Richard wrote: > > Simone, > > Since simplejson have be exit, and standard lib json it reputed multifold > time slower what are you suggesting as a remedy? > > Richard > > On Wed, Jan 20, 2016 at 2:50 PM, Niphlod

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
again what, off topic, ever!! :) Richard On Wed, Jan 20, 2016 at 3:43 PM, Niphlod wrote: > ehm.. what again ? > > On Wednesday, January 20, 2016 at 9:36:01 PM UTC+1, Richard wrote: >> >> Simone, >> >> Since simplejson have be exit, and standard lib json it reputed

Re: [web2py] Re: Get return value from controller function via ajax

2016-01-20 Thread Richard Vézina
To my knowlege simplejson contrib was there because of standard json lib was too slow... Richard On Wed, Jan 20, 2016 at 4:04 PM, Richard Vézina wrote: > I mean, before in gluon/contrib there were simplejson, but I notice it had > been removed in 2.10.x if I