CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Moving data from listbox to a textbox via mouseclick (doubleclick?)

Print topic Send  topic

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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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