[web2py] Re: strange behavior of ajax() function if there are request,args

2014-02-07 Thread Mirek Zvolský
Yes, really ! Means that if there is not full URL(), web2py creates the url for ajax request from current page url and if request.args are in use, web2py will make bad address. There is one points to make it more clear: - why web2py creates as bad address just the address of the whole page (not

[web2py] Re: strange behavior of ajax() function if there are request,args

2014-02-06 Thread Anthony
The ajax() function must take a proper URL as the first argument. Your URL is just 'echo', which the browser interprets as being relative to the current page (because it doesn't start with a '/'). Instead, should be: ajax('{{=URL('poptavka', 'echo')}}', [], 'target') which will produce: ajax('