I assume param is javascript variable, not a Python variable: ################## <script> .... var param = 'value'
.... "{{URL(r=request,c='static',f='action')}}/"+param ..... </script> ################## On Jun 18, 10:38 am, Yannick <ytchatch...@gmail.com> wrote: > Hello Mate, > I have a little problem here and not sure if it is even possible to do > so... > I was wondering if you know how to access javascript value in the > web2py python code from the view.... > > Here I'm trying to add a parameter to my URL and the value of that > param is a Javascript variable > > ################## > <script> > .... > var param = 'value' > > .... {{URL(r=request,c='static',f='action', args=[param])}} > > ..... > </script> > ################## > > This code gave me an error because the variable "param" is not defined > which is normal... > Do you know a way to get a param's value and put it as an argument to > my URL ?? > > Thanks for your help... > > Cheers, > Yannick P. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---