CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Doubleclick items in a listbox

Print topic Send  topic

Author Message
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.
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 http://support.yessoftware.com.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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