Chris__T
Posts: 339
|
Posted: 05/09/2008, 1:12 PM |
|
If you have a listbox with various names, can you double click on a name and have it "move" to a text box? And each time you click on a name, it appends it in the textbox? Would that involve javascript?
|
|
|
Chris__T
Posts: 339
|
Posted: 05/14/2008, 6:06 AM |
|
If anyone is interested, I found a solution to my question above.
Here is the javascript:
function Copy_listbox(){
document.<formname>.<s_searchfield>.value += " " + document.<formname>.ListBox1.value;
}
And here's the code for the html tag of your listbox:
<select ondblclick="javascript:Copy_listbox()" style=......... >
Now, when you double click the selected choice in your listbox, it sends a copy over to the search field. Clicking another selection will append it to your search textbox.
|
|
|
wkempees
Posts: 1679
|
Posted: 05/14/2008, 4:09 PM |
|
Chris,
repost this in tips & solutions.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
|