On Friday, June 26, 2015 at 3:12:49 AM UTC-7, Carla Raquel wrote:
>
> I have two dropdown lists like the ones below and I would like to compose 
> my URL using the month and year as vars, after I click a certain link.How 
> can I change my current request.vars to the selected values?
>

Are these selects part of a form?  If so, their values should be in 
request.vars when you submit, AIUI.

If they are not part of a form, you may need to do client-side javascript 
to compete the URL, which would be a problem if you're using signed URLs.
(Again, AIUI)

/dps


 

>
> <select id="month" name="mn" class="selectClass">
>         <option value="">Select month:</option>
> {{for m in months:}}
>      <option  value='{{=m}}'>{{=m}}</option>
>     {{pass}}
>             </select>
>
> <select id="year" name="yr" class="selectClass">
>
>                  <option value="">Select year:</option>
>             {{for y in years:}}
>             <option  value='{{=y}}'>{{=y}}</option>
> {{pass}}
>                  </select>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to