informatica
Posts: 1
|
| Posted: 07/19/2006, 6:23 AM |
|
how can i change one field in a textbox when i change de value in one listbox.
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 07/19/2006, 8:21 AM |
|
informatica
Seems like you are trying to make a dependent textbox. You are probably going to have to use javascript. Here is a link that may be helpful: http://examples.codecharge.com/CCSExamplePack2/Dependen...dentListBox.php
It may not be exactly what you need but it may point you in the right direction.
You could also probably do a search on Google as well.
|
 |
 |
eserver221
|
| Posted: 07/19/2006, 6:22 PM |
|
You can add a custom client event onBlur, when the focus leave that very textbox, the form submitted. Then in the server event beforeShow of ListBox, you can change its value based on the textbox field value Submitted!
|
|
|
 |
Paulo Rodrigues
|
| Posted: 07/20/2006, 1:25 AM |
|
Is not exacly what i need but it's ok, thank you.
I have two tables, (agregados, elementos)
I'm working in "agregados" and i have to put two fields from "elementos"
one is "name" by a listbox and the other "contact" should appear automatly when i pic the value of "name"
|
|
|
 |
eserver221
|
| Posted: 07/20/2006, 5:55 PM |
|
If you would not like to submit the form, you can use Ajax or startdownload of HTML implementation which would also need a textbox client event onBlur. In the server end, a custom jsp with corresponding URL parameter appended will retrieve the value back., then in the onBlur event you need delete the ListBox first, then create a new Listbox with value retrieved back.
Best Regards!
|
|
|
 |
|