Chris__T
Posts: 339
|
Posted: 05/15/2008, 6:18 AM |
|
If anyone is interested, a tip on doubleclicking. The code below will allow you to doubleclick the selected item in a listbox, and in this example, copies it over to a textbox.
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.
|