You can try: {{URL('static','action',args=[param1,param2])}}
On Dec 4, 12:10 am, Vineet <vineet.deod...@gmail.com> wrote: > I referred to the below-mentioned thread (but could not reply to it). > > https://groups.google.com/group/web2py/browse_thread/thread/61d57e887... > > My question is --- > If I have two javascript variables, which are to be passed to a > controller through URL helper as under -- > > [CODE] > <script> > .... > var param1 = 'value1' ; > var param2 = 'value2' > > .... "{{URL(r=request,c='static',f='action')}}/"+param1¶m2 > that did not work > .... "{{URL(r=request,c='static',f='action')}}/"+(param1,param2) > didn't work either. > ..... > </script> > [/CODE] > > How do I code it? > > Thanks, > Vineet