Yes Massimo, param is a JS variable... Thanks for the note and help it works fine...
Thank you all for your help on this Cheers, Yannick P. On Jun 18, 12:00 pm, mdipierro <[email protected]> wrote: > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

