I think this is an important topic, And needs to be highlighted in the book and by example.
On Saturday, December 3, 2011 7:10:59 PM UTC+3, Vineet wrote: > > I referred to the below-mentioned thread (but could not reply to it). > > > https://groups.google.com/group/web2py/browse_thread/thread/61d57e887e42aee8/c3dd5cd43b9d5527?lnk=gst&q=URL+javascript+variable > > 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 > >