CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Doubleclick items in a listbox

Print topic Send  topic

Author Message

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.
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.