cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo Rivera <agalla...@agsoftware.dnsalias.com>
Subject Re: Changing request Parameters in an Action.
Date Mon, 07 Oct 2002 07:12:32 GMT
The answer I found was using Javascript to change the values of 2 hidden 
parameters using the OnChange event of the object select.

Antonio Gallardo

El Lunes, 07 de Octubre de 2002 00:31, Antonio Gallardo Rivera escribió:
> Sorry but, I am reopening this, because I need to change some parameters on
> the client form before I can add it to the database.
>
> I have a 2 fields database key:
>
> cat_id (foreign key from table categories)
> pro_id
>
> In the table are some values:
>
> cat_id	pro_id	pro_name
> 1		1		product1
> 1		2		product2
> 2		1		product3
> 2		2		product4
>
> I need to let the user select the product from a HTML page in a combo
> basis. Then i can code:
>
> <select name="my_product">
> 	<option value="1-1">product1</option>
> 	<option value="1-2">product2</option>
> 	<option value="2-1">product3</option>
> 	<option value="2-2">product4</option>
> </select>
>
> When the user send the request I get a parameter my_product="x-y". Where x
> is the encoded value of cat_id and y is the value of pro_id.
>
> Now my problem comes to life: How to create new request parameters into an
> action to make 2 new parameters:
>
> cat_id="x" and pro_id="y"
>
> Please help me ;)
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message