On Wednesday, July 20, 2011 11:17:51 AM UTC-4, Ramos wrote:
>
>
> i have a simple view with some html and no db defined in the background
>
> *EXAMPLE VIEW*
> <select>
> <option value="volvo">Volvo</option>
> <option value="saab">Saab</option>
> <option value="mercedes">Mercedes</option>
> <option value="audi">Audi</option>
> </select>
>
> {{=LI(A('something', _href=URL('show', args=??))}}
>
> if i want to pass as argument of URL the selection in the above select tag
>
The URL function is called on the server side at the time the page is first
rendered, but the selection is made by the user on the client side after the
page has been delivered, so there is no way for the URL function to insert
an argument from the select because the select happens later. Depending on
what you're trying to achieve, you might be better off treating this as a
form and doing a submit, or otherwise do something with Javascript on the
client side.
Anthony